On the Nerd Stats, the viewport must match the current video resolution. If the viewport is 1920x1080*2.00, the 4k video is downsampled to that resolution.
In fact if you play a YouTube video at 240p, 480p, 720p, 1440p the viewport will always be at 1920x1080, the screen resolution of the software.
For example if i have a 4K PC monitor and i set the resolution to 1080p in the display option and play a 4k YouTube video, the stats will say "Viewport 1920x1080 ... Current / Optimal Res 3840x2160.