Scaling for different tablet sizes in android app

Hi, I have a dashboard for a clock. I’m new to HA, but currently I’m using a custom:layout-card with grid-layout with 4 columns and 3 rows. I then then use font-size or scale to set the size of each element. However, I have 3 tablets with different resolutions and aspect ratios, so in order to fully utilize the space, I end up with 3 copies of this dashboard with font-size/scale values tailored to each tablet. The dashboard is fairly complex with a bunch of conditional formatting and conditional cards, so it’s a pain to update 3 copies every time I change something. Is there a better way? At a minimum, I was hoping to set the font-size/scale as variables at the top of the dashboard (or do conditional statements inline), but I haven’t figured out a way to do that. Thanks.

A layout card with a mediaquery might be a somewhat easy solution.
The best solution would probably be lovelace_gen, but then it is YAML-only editing from then on and it might take some time to convert your dashboards to YAML files.

Thanks for the suggestions! Those look promising.