If you calculate the electricity bill for the amount of electricity that is consumed to mine a bitcoin, it can be seen that there is no profit in mining bitcoins.
It really depends on the cost itself. Some miners can have their own power source that doesn't rely on the national power grid, for example. I heard some miners use hydropower to run their farms. While that is rare, the fact that those mining farms keep operating means either they earn decent profit or they believe they can sell BTC for a profit later. CMIIW.
Such portable hydroelectric power plants were very common in China with a capacity of 25-250 kilowatts, but after the mining ban, there were many announcements about this sale. I also think that this uses very few miners and many questions about registering such equipment for generating electricity.