Why? Does this affect a separate web page that you maintain yourself or something? The hack is ugly and doesn't actually completely solve the problem anyway, so it's not something I'd recommend anyone using - just live with the quirk if you can.
NWjs games are also affected and show pretty ugly black bars, as if the game failed to letterbox correctly.
You decided to use this hack inside C3 so it can't be that bad.
It's been 4 years and the Chromium team still didn't provide a fix, despite multiple reminders.