I wouldn’t recommend assuming the size of the monitor in pixels. Have you tried the screen scale demo?
https://run.pavlovia.org/Wake/screenscale/
Here are some threads which might help.