For anyone having this issue, it’s easily solved in your Project Settings - Input. Below your input bindings, you’ll see a section that says Viewport Properties, and then the second option is Default Mouse Lock Mode. Set this to Lock Always in the drop-down.
3 Likes