How do I prevent my iphone from becoming unresponsive?

I have an iPhone5s and every week or two it goes black showing nothing on the screen. Whatever buttons I press it doesn't turn back on nor show anything on the screen. If someone calls me my phone doesn't respond still. So far each time this happens it lasts for 3-8 hours then at a random time starts working. Is there a way to prevent this from occurring again?

Take it to the Apple Store

Maybe 2017 is advanced ahead to be using a 5s
but I do understand the financial factor. What you can do is, remove unnecessary stuff from your phone, give it some space to breath. I have a habit of using google photos to backup those heavy image files, then delete from the phone

Check an Apple Store about that.

In the meantime I would try a reset of the iPhone.

  • How to prevent my iphone pictures from flipping? I have an iPhone 4 and whenever I use the front camera, when the picture saves it is flipped so the pictures look so weird and different… Is there a way I can stop this from happening? And also I've looked it up and when you double press on your home button you're supposed to get an icon where it's portrait orientation but i don't see it or I don't have it. Either help me with this icon thing or with stopping the pictures from flipping altogether. Please?
  • How to prevent my iPhone from being tracked? A couple days ago I received a message from AT&T (my provider), saying that my phone can now be tracked by my mom's phone. Is there any way I can prevent this short of turning it to airplane mode or off?
  • How to Prevent My iPhone From Being Stolen While Playing Sports? I'm playing soccer at my school and the seasons about to start. While i'm playing I don't want my phone to get stolen. Is there anything I could do to prevent this?
  • How to prevent iPhone glass from breaking? I have an iPhone 5, and I don't want the glass to break. So, how can I prevent that? I have a case c: But it's the front glass, with the touch screen if you know what I mean (: Oh, and I don't need stupid reactions with: "Don't drop it" and stuff, I know that.