Since Android 11 launched in 2020, you haven't needed a third-party app for the job - though you can still use one if you need extra features.
To stop the recording, swipe down to see the Screen Recorder control, then tap Stop. You get a notification confirming the recording has been saved.
If it isn't there, tap the pen icon (lower right), then drag Screen record into the panel. Tap Screen record to begin the process.
On the Start Recording? screen, choose A single app from the drop-down to limit the recording to one specific app or Entire screen to capture everything.
Collection
[
|
...
]