All activity
By default, on macOS, you can only hide the dock for all virtual desktops (spaces). This app will allow you to turn the dock off or on for certain virtual desktops as in full screen mode.
HideMyDock
Hides you macOS dock on selected virtual desktops