A moment happens fast and switching the Camera app to Video mode takes a second you do not have. On the iPhone you do not need to switch.
Open Camera in Photo mode and touch and hold the shutter button. The iPhone starts a QuickTake video, and it stops when you let go. Apple’s guide describes exactly this.
If you do not want to keep your finger on the button, slide it to the right and let go over the lock. Recording continues hands-free, and you stop it by tapping the Record button.
While a QuickTake is running, a separate shutter button appears. Tap it and you take a still photo during the video, without interrupting the recording.
There is also a hardware route: in Photo mode, pressing and holding a volume button starts a QuickTake as well, according to Apple’s support pages. On models with a Camera Control button, you can click and hold that.
The caveat is the quality and format. QuickTake follows the video settings of the camera, and the clip is a normal video in your library afterwards. Check that you are really in Photo mode first. Apple’s guides also describe the hands-free slide a little differently between iOS versions, so if the lock does not show up, follow the hint on screen.
Further reading: Apple Support: record a video with your iPhone camera
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically