always like finding quick ways to take screenshots/screen recordings myself three finger swipe/double tap/long press power button which some Android devices can use for this
depends on manufacturer
here is a iOS way
If your iPhone runs 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.
https://www.howtogeek.com/690823/how-to-take-a-screenshot-by-tapping-the-back-of-your-iphone/