It won't.
The main problem with solar and wind is that they can't be dispatched on demand. The power is incredibly cheap, but you are completely at the mercy of the weather.
What is needed is a source of power which can make up for the freak moments where 1) there isn't any sun, and 2) there isn't any wind, and 3) it lasts long enough that batteries can't cover it, and 4) it has to be widespread enough that you can't make up for it with power from half a continent away.
This power source will only need to be used for a few hundred hours per year but it'll need to carry a significant load, so while its per-MWh running costs are basically irrelevant its one-time per-MW construction costs should be fairly low.
This does not at all describe nuclear power, which has incredibly high construction costs, near-zero running costs, and is expected to run 24/7/365 at 100%.
I'm optimistic about synthetic hydrocarbons for that use case. The infra is already in place for storage, delivery, consumption. You gotta waste some energy to get it, but if sun and wind is cheap most of the time, who cares?
> synthetic hydrocarbons
I don't follow. Why would they be any less polluting than natural ones?
Because they would be generated with CO2 by industrial processes or carbon capture. I don't see the process becoming economically viable, and hydrocarbon combustion create other toxic byproducts, compared to hydrogen. It will still make sense for usages that require a high J/kg fuel ratio.