08 5.2 80k mi random overheating

Hello all,
I’m hoping someone can weigh in on this. With a slew of other issues that I will talk about in another post. My car will sit at normal operating temperatures for nearly 20 minutes during my drive and then out of nowhere my temp gauge moves to almost full hot. I shut the car off for 60 seconds and turn it back on and start driving and it’s at normal operating temperature again. However 5 minutes later it “overheats” again until I shut it off for a minute and turn it back on.
My thought are a bad coolant temp sensor lying and the car is going into some sort of safe mode. Shorter shifts ac stops blowing cold etc. then one minute of shutdown time and everything is fine again.
My other thought being that this car has an electric thermostat that maybe isn’t opening? And then opens after a minute of sitting time?