Ac on with heat

I have the thermostat on auto. The ac is running but will randomly start blowing hot air. I shut the system off then turn it back on and it blows cold air again. This keeps happening. The only thing I did was disconnect the g wire because wyze said to. Do I have everything hooked up correctly?

Show a picture of your old thermostat wiring. I have a feeling that your Y2 is actually a W1 wire…