If your mouse cursor does not lock to a game on Windows 11/10, Enable LUA, Update or reinstall the Mouse and Touchpad driver, Disable Mouse Precision, etc.
To change the default color of your mouse cursor, repeat the first three steps described above, then click on the Mouse pointer style tab to expand it. After that, you will see four options ...