All great tech fails every now and then, and thankfully there are ways to easily bring devices back to life when they freeze up. If your iPhone isn't responding and you're not able to power it off ...
Restart your iPhone Sometimes simply restarting ... press and hold the side button again until the Apple logo appears. Turning off an iPhone 8 Plus or earlier is slightly different.