Check where the pointer disappears
Open Settings or the main menu. If buttons highlight as you move the mouse, the game is receiving input and only the pointer is missing. If nothing highlights, check window focus and mouse input. During a round, the crosshair takes the place of the desktop cursor.
Return focus to the game
Press Esc to close the open menu or panel. Alt+Tab to the desktop, check whether the pointer appears there, then return to CS2. If the issue started after opening the Steam Overlay, close it and check the menu again. For a repeatable test, temporarily disable the overlay in CS2 Properties and restart the game.
Test the display mode
Once the menu is usable again, select fullscreen windowed mode and repeat the action that made the pointer disappear. If only one mode triggers the issue, note the mode, resolution and steps that reproduce it. If the pointer also disappears outside the game, start with system troubleshooting.