Anti-ice and window heat switches on Cessna 172G 1000

Your options are to pick a plane that has de-icing, stay low and out of clouds (not always possible), or fly at a different location where icing isn’t an issue.

The only small GA plane I’m aware of in MSFS that has full de-icing capability is the DA62.

That would help to an extent IRL, but not quite enough. But the 172 still isn’t rated for flying into icing conditions.