Overwrite EDID physical screen size

Hey,

My display (LG Ultrafine 4K) reports its screen size wrongly:

Screen size: 70.0 cm x 40.0 cm (31.74 inches, aspect ratio 16/9 = 1.78)

In fact, the screen is smaller. This is, I guess, due to the EDID limitation on the precision of the dimensions: it allows for only 1 byte for a value in centimeters.

This issue turns into the problem when, e.g., browsers or office software try to draw something using physical measurements: the output is bigger than should be.

The question is, therefore, how to override those values with more precise one, in millimeters?

Oh, same question with no answer:

There is this old issue in the Mutter repo:
Incorrect physical screen size values reported on Wayland (#2812) · Issues · GNOME / mutter · GitLab.