How to Hide Dock on Mac
Step 1. Go to Apple menu ( ) → System Preferences → Dock
Step 2. Click on Automatically hide and show the dock
Read Also How to Benchmark my PC
There are other options to choose from too
OR
Step 1. Put the cursor at the bottom of the dock and double press the trackpad
Step 2. Go to Dock Preferences or directly choose Turn Hiding On