Here's my 1-minute setup for screen recording 9:16 aspect ratio videos (Shorts) from Safari on a Mac.
This is really handy for demoing features for responsive web apps on social feeds without resizing your entire desktop or using an actual smartphone.
I use Safari's "Responsive Design Mode" dev tool and CleanShot X, which can both set custom resolutions in the same aspect ratio.