If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model.
1. Tap Settings on your iPhone. 2. Tap Face ID & Passcode. You might have to enter your Passcode here to continue. 3. Tap Stolen Device Protection. 4. In the new menu, toggle on Stolen Device ...