I have some test code for this.
https://run.pavlovia.org/test-suite/hide-mouse/
It works online with document.body.style.cursor='none';
and document.body.style.cursor='auto';
but there is currently an open issue trying to fix win.mouseVisible = False
locally. I think it should work in releases prior to 2023.2