Mining requires 24/7 power availability to be profitable.
Just solar panels don't provide that. You need either energy storage to accompany that or take from grid at times your panels don't supply power.
Building electricity storage solution at present is very costly and will not be profitable for you.
Relying on grid and using 100% supplied by panels when they produce is your best option right now.