Handing someone your unlocked phone to look at a photo also hands them your mail and your notes. Since iOS 18 you can lock apps one by one.
Touch and hold the app icon > Require Face ID
then confirm Require Face ID
From then on, opening that app asks for Face ID, Touch ID or your passcode. In the same menu you can pick Hide and Require Face ID, which also removes the icon. Hidden apps move to a Hidden folder at the bottom of App Library, and opening that folder needs authentication too.
I would lock the apps with money, health or private conversations in them, and stop there. Locking everything just means scanning your face all day.
To undo it, touch and hold the icon again and choose Don’t Require Face ID.
Only apps you downloaded can be hidden, and some built in ones may not offer the lock either, so check yours. The setting stays on this device and doesn’t sync to your iPad. Children under 13 in Family Sharing can’t use it. And a locked app is not a secret one: anyone can still see it exists, and a hidden one still turns up in places such as Screen Time and your App Store purchase history.
Further reading: Lock or hide apps on iPhone
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically