How to get user screen dimension information when running in Pavlovia?

This information helped a lot with getting screen dimensions, thank you! There’s also code template in the Crib sheet that I found very useful, however I have noticed just now that JS logged my monitor information incorrectly (1920x1080 in reality, logged as 1536/864 in the output file, and also in my PsychoPy configuration). Is there any way to change this mismatch?