How to read the screen size

I want to scale the screen but I need to see if there is a way to read the size of the screen

The variables WIDTH and HEIGHT give the screen size, but their values don’t change when you use the scale(x,y) function. If you use scale(2,3), then the screen width is WIDTH/2 and the height is HEIGHT/3.

@pac when the app is launched onto a different device, the variables WIDTH and HEIGHT will automatically become the current width and height dimensions of the screen

Thanks