You can further hide Cortana if you want to from the same right-click menu. You can disable the taskbar lock by following the steps below: To start with, make sure the taskbar is not locked.
Method 1 (Without Any App) Step 1- Unlock the Taskbar On the other hand, the second method is very straightforward- download the app, and you’re good to go. The first method doesn’t require any installation but involves multiple steps. However, note that this only works for taskbar icons and not the Start menu. You can do it by either tweaking taskbar settings or through a third-party app. There are two ways you can get Windows 11’s centered taskbar on Windows 10.
Get Centered Taskbar from Windows 11 on Windows 10.