Check your remote. We had the same problem with our TV turning on and off as well as the little red dot flashing. There was corrosion inside the remote where the batteries are connected. As soon as we took the batteries out the TV stayed on. When we put the batteries in the red light started flashing and the tv turned off. It’s the remote so we are ordering a new one.
Hope this helps.