Detect screen and viewport resolution with responsive breakpoint testing and real-time resize updates