UI Font breaks in Hybrid App

We have developed a Hybrid App using Ionic5. For all the display of text, we have used PX (pixels) and vmin as the font units. When the Font is changed to XL or XXL in the device display / font settings, the sizes in the Hybrid App also changes and as a result, the UI is breaking giving a bad experience to the customer.

Please let us know any input for this.

Thanks in advance!