Short answer: share a single window, and the Dock never appears in the share. If you need to share the whole screen, press Option Command D to hide the Dock first, and press the same keys again when you finish.
Still Dock adds a Presenting switch that hides the Dock and keeps your other locks in place, and turns everything back afterwards.
Zoom and Microsoft Teams both let you pick what to share. When you choose one window, the people watching see that window only. Your Dock, menu bar, notifications and other apps stay private.
This is the cleanest fix and costs nothing. The catch: you have to switch the share each time you move to another app, which is awkward in a demo that jumps between apps.
Press Option Command D and macOS turns on "Automatically hide and show the Dock". The Dock slides away and only comes back when your pointer touches the bottom edge. Press the same keys again to turn it off.
The same switch lives in System Settings › Desktop & Dock. Two things catch people out:
autohide-immutable, the shortcut does nothing until you lift that lock. See locking the Dock without installing anything.
Still Dock puts a Presenting switch at the very top of its menu bar menu. Turn it on before the call and the Dock hides. Turn it off afterwards and the Dock comes back as it was. If your Dock was already set to hide before you started, the Dock stays hidden afterwards.
You can also flip it without touching the menu:
Presenting is part of Still Dock Pro.
The direct download changes the Dock's hide setting itself, and every other lock stays on while you present.
The Mac App Store version is sandboxed, so it presses Option Command D for you. To press keys it needs Accessibility permission, and it asks for that only the first time you turn Presenting on, with a one-line reason. Say no and it shows a reminder to press Option Command D yourself. In that version the other locks pause while the Dock is set to hide, and they come back when Presenting ends.
Only if it is inside what you share. Share a single window and neither the live share nor the recording includes the Dock.
Yes. Presenting hides the Dock on the Mac itself, so it works the same whichever app is sharing.
No. Turning Presenting off puts the hide setting back to what it was before you turned it on.
Presenting for a talk or a demo in a room? Lock your Mac Dock before a presentation covers the rest of the setup.