on the client side, use window.screen.width and window.screen.height