Lock the taskbar
You can keep the taskbar in one place by locking it, which can prevent accidental moving or resizing. If you unlock it, you can move it to the bottom, side, or top of the desktop.
Right-click an empty space on the taskbar, and if Lock the Taskbar has a check mark next to it, the taskbar is locked. If it does not have a check mark, click Lock the Taskbar.