Solved! Tv comes on for a while then shuts off n then comes back on by itself

Solution
It is highly likely that the power supply in the TV may be overheating ... clean all of the vents at the back and if you are confident, remove the back and use compressed air to remove any dust.