Why does ac unit keep turning off?

Window unit fairly new very clean stays on for a good while then just turns off completely will turn back on if we push the reset button on plug idk what to do?
4 answers 4