So, if you are planning a gas plant that needs to be operational for decades, the economic outlook is pretty grim. That's why lots of plans for new gas plans are getting shelved.
Existing plants run quite economically. But when cheaper clean energy becomes available at scale, it becomes more expensive to operate them. Selling expensive energy during low demand is not going to be an option because cheaper energy will be preferred. Spinning plants up during peak demand takes time and battery + solar is already cheaper and faster for that as well. A gas plant that isn't running part of the time is going to be more expensive. That's why a lot of them will be taken out long before their planned end of life.
Currently people are shutting down the most expensive plants first (nuclear & coal) but once that is gone, gas will be next.
Solar/wind + massive energy storage is what competes with gas. And in that category it’s not even close to competitive because batteries are still way too expensive.
So, you need batteries locally for fluctuations and you can cross connect sites with wires so you can import excess energy from elsewhere. Conveniently when it is cloudy, it's usually also pretty windy. Global warming is oddly helping here by creating even more wind.
So, a combination of a some over capacity, some wires for moving energy around, and some battery for short term fluctuations would be all you need. If it's not enough on the worst days, just add more windmills/solar/batteries. At the rate prices are dropping installing 2-3x the needed capacity would still be cheaper than keeping gas plants around. Those prices are projected to continue to drop of course making the whole thing only even more affordable.