On an iPhone 8 or later, you can set the phone to perform various actions when you double- or triple-tap on the back of the phone.
(Article from 2020, but it still works.)
https://www.howtogeek.com/690823/how-to-take-a-screenshot-by-tapping-the-back-of-your-iphone/
How to Take a Screenshot by Tapping the Back of Your iPhone
If you own an iPhone 8 or later running iOS 14 or later, you can now take a screenshot just by tapping its back thanks to a new accessibility feature called Back Tap, which you’ll have to configure for the task. Here’s how to set it up.