Start Quicktime Player recording while in Split View mode
Make it a on a new desktop, and later trim it. 

https://support.apple.com/en-in/guide/quicktime-player/qtpf2115f6fd/mac

If it is only screen, not audio, you can even use command+shift+5 to record the screen in most circumstances.