Unresponsive Screen

Has anyone had their screen become unresponsive? A couple times, my screen will stop registering touch responses. If I turn the screen off and then back on, it starts to work again.

Does this sound like an ios bug or a hardware issue? If I go to an apple store, I don't know if it is going to do it while I am there since it is not happening all the time. However, if it is a hardware issue, I do want to take care of it.
Sounds software to me- almost like its freezing up or something.
I have not had any issues. Is this a phone where you restored a back up from a previous phone or did you start fresh?

Original thread: https://forums.imore.com/threads/unresponsive-screen.301634/