That function only works for frame rate, you’ll still get the HDMI Handshake causing a black delay upon Dynamic Range changes.
So it all depends on what you’re watching, id guess the vast majority of what you’re watching on YouTube is SDR whereas other content outside of YouTube is possibly HDR or Dolby Vision.