Used the buttons to turn off but it is still frozen.
You don't want to turn off the phone, you want to restart the phone. I haven't seen this issue, but if it appears, I would perform a Forced Restart.
Follow the instructions very carefully, as this is a bit tricky. You may need to repeat this several times.
Force restart iPhone - Apple Support
There are only 2 possible results when you perform a Forced Restart:
1) The phone returns to normal operation.....or, if it doesn't.....
2) There is a hardware problem with the phone that will need attention at the Apple Store (make an appointment) or take the phone to an authorized Apple Service shop.
You can find a list of authorized service shops in your area using the link just below:
Find Locations