It's kind of a magic trick
How to Hide the Taskbar in Windows 11
Your Windows 11 taskbar gives you quick access to your Start menu, pinned apps, and other items. If you have alternate ways to access those items and the taskbar is taking up unnecessary screen space, you can hide it. Doing so will remove the bar from the bottom of your screen. We'll show you how to do that on your Windows 11 PC.
Windows 11 offers an option to automatically hide your taskbar when your cursor is not hovering over the bottom portion of your screen. This way, you won’t have an unwanted bar showing up on your screen all the time. It’s also quick and easy to unhide your taskbar when you want to.
The easiest way to get rid of your Windows 11 taskbar is to use the built-in Settings app. This app provides an option that you can enable to disable your taskbar. You can toggle this feature on and off at any time, making it quick and easy to hide and unhide your taskbar.