To hide Dock on Mac click on the Apple menu in the top left corner and open System Preferences -> Choose Dock, Tick the option “Automatically hide and show the Dock”, so it will hide when you are not actively using it.