My iphone screen shuts off all the time?

This started a few months back. My iphone 6 just started to shut off (not shut down but just the screen shuts off). How can I fix this?

Go into settings, click general and look for auto lock. Click on it and then choose how often you want your phone to turn off or lock.

Also make sure power saving mode isn't on, because then it goes off every 30 seconds

  • What do I do when my iPhone 4 completely shuts off? I've tried charging it but that didn't work. It won't turn on at all. Please help! Yes, I have left it charging over night, is that bad?
  • My Iphone keeps shutting off, but before it shuts off, my screen freezes and there's these lines that show up, they're random? My Iphone keeps shutting off, but before it shuts off, my screen freezes and there's these lines that show up, they're random. Sometimes there's this crackling sound, and sometimes the line move, my mom says its just the phone, but my dad says, its the proccecor and that its overheated, i have an Iphone SE rose gold 64 gb and my iOS is 12.3.1
  • My iPhone 4 won't shuts off when charging? My iPhone 4 will not charge when it's on, I have to turn it off so it will charge? Please help? Has this ever happened to any one else?
  • My iPhone 4 suddenly shuts off? It won't turn on. When I plug it on computer or charge it directly, the apple logo keeps appearing on and off but it won't turn on. It happens already before, i reset it and deleted everything on my phone and after a couple of weeks it shuts off again. When I plug my rechargeable backup battery, it would open but for only a couple of minutes and would shut off again when I unplug it. I don't want to go to apple store if possible, so is there anyone who could help me?