Hide the Dock in screen capture
Exclude the Dock from supported captures for a cleaner frame.
Screen Recorder / Screen appearance
Leave out the menu bar on supported display and area captures.
See more in Screen appearance
Screen › Tidy screen › Hide the menu bar
Apple silicon Mac running macOS 26 or later.