Download OBS Studio https://obsproject.com/download
Change Base and Output to be the same resolution (1920×1080 probably)
Encoder: Hardware (Anything)
Recording Format: mp4
ok, close out of settings
Sources [+] (at the bottom)
Check your video looks right in the video area (Should be showing your desktop)
You can click in there and resize, but if you need to do that you probably didn’t get the video resolution correct before.
Hit [Start Recording] to record.
In the future you should just be able to start OBS, the display should already be in the video pane, hit [Start Recording]