If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model ...
Your iPhone's status bar is a helpful dashboard that provides a glance at the vital signs of your smartphone. You're probably used to seeing the Wi-Fi and cellular data icons in this indicator field, ...
Revive your unresponsive iPhone by forcing it to restart. Additionally, you can try charging the phone or reinstalling iOS.