Policy continuity is important, and it's a challenge to democratically elected governments to respond to the needs of the electorate. Affordability pressures are hitting really hard, so you're right that this is a risk. That's why any government advancing energy transition and climate action needs to do so in a way that cannot be easily reversed, because it gains the ill will of the populace.
If that's prioritized, then policies will be resilient. They will last for a long time and create that investment certainty that we need.