This is for Windows 10 as that is the version my device is currently on.
Task Bar settings > switch 'on' for automatically hide task bar for desktop/tablet mode, depending on which you prefer to...