Well I see 2 issues here
1. Seems like Youtube apps/browser simply does not support rendering in 4K (the stream is 4k, just downsampled onto the app's viewport)
2. Xperia 4K HDR is hard to pin down. there is no hdr on/off to see the difference. no indicator that a video is being rendered in 4k...