A plain screen recording on the iPhone is silent from you. If you want to explain what you are doing, say, to show a relative how to change a setting, the microphone switch is hidden behind a long press.
Swipe down from the top-right corner to open Control Center. If the Screen Recording button is not there, add it through the Control Center customization. Then do this:
Touch and hold the Screen Recording button > Microphone > Start Recording
Apple’s guide words it as: touch and hold the Screen Recording button, tap Microphone to turn it on, then tap Start Recording. A three second countdown runs, so open the app you want to show before you press it.
To stop, tap the red circle and then the Stop Screen Recording button on an iPhone with a Dynamic Island. On other models tap the red timer in the top-left corner and choose Stop. The video is saved in Photos, under Collections, Media Types, Screen Recordings.
Caveat: the microphone records what it hears in the room, so keep the phone quiet and don’t say anything you wouldn’t want in the clip. Check the result before you send it, and check that no notifications with private text slid in from the top. A Focus such as Do Not Disturb before recording keeps those out.
Further reading: Take a screen recording, iPhone User Guide
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically