
Sometimes, you may not be comfortable having the taskbar on one display only, see this link for more information How to move the Taskbar to a second screen in Windows https://techdirectarchive.com/2020/02/13/how-to-move-the-taskbar-to-a-second-screen-in-windows/
To make this possible, perform te operation via the Windows Settings
- Make task bar available on both displays - Toggle the show taskbar on all displays on

To have the taskbar appear only on one display, simply switch the “show taskbar on all display” off.

And this will automatically hide the taskbar for the second window