Room Card design problem| HACS

Hey!

I‘ve a problem with the visualization of my room-card addon.

Is there any solution to align the font size depending on the device? On my tablet and computer the visualization works perfectly fine, but unfortunately not on my phone.