I think that eventually miners will have to generate their own electricity.
The problem with going off grid is that mines are the most efficient in cold climate and such climate is not the best for solar panels. You get less exposure throughout the year and have to clear the snow. In warm areas panels are great but mining equipment not so much.
There are some regions suitable for solar energy
and mining hardware. Probably the largest is the Altiplano/Atacama area in Argentina, Chile, Bolivia and Peru. It's a high plateau at about 2500-4000 meters of altitude, with a mean temperature of about 5-10 degrees Celsius, but an extremely high amount of sunshine hours (take
La Quiaca with its 3,400 sunshine hours as an example), and snow is very rare. In Mexico and Colombia, as well as in China, there are smaller regions with similar characteristics.
It is very likely that a large part of miners would move into these regions, if there are no political or legal obstacles.