What do should I do when my Iphone freezes?

Shortly after getting my phone the home button stopped working so I have the on screen home button so holding the home button and lock button will not work for me. I tried powering it off but it wont let me touch or click on anything on the screen except the on screen home button. Any ideas?
My answer to this question will always be the same. Get the home button fixed.
I agree with Just_Me_D, get it fixed.
When you said you "tried" to power it off, what did you do? Did you tap on lock screen in the assistive touch? That will power off the phone.
Tap on device.
91dff1e6ff47ac5ee844eb3492896fa9.jpg


Then tap lock screen.
e6dce875afd8abf97d642e546a27e56b.jpg


Hopefully that works to unfreeze the screen.

Original thread: https://forums.imore.com/threads/what-do-should-i-do-when-my-iphone-freezes.397257/