Scaling issues with Libreoffice and multiple monitors

I have a laptop with a full hd screen in 16:9 and libreoffice looks ok

but when I start it with a second, bigger monitor connected, also in full hd, 16:10, the UI is scaled wrong

and if I start it without the second monitor connected, and then connect the second monitor and move the windows to it it looks huge

I tried to match their scaling, they were 125% (laptop) vs 100% and with both at 125% the situation is much better on the second monitor

but the windows of the programs working “correctly” are a bit too big on the second monitor now

commands tested

SAL_USE_VCLPLUGIN=kf6 libreoffice

QT_QPA_PLATFORM=wayland GDK_BACKEND=wayland libreoffice

Is there a way to set scaling for a single app, single monitor under wayland?

EDIT: leaving it here since it’s a known issue

Multiple screens with different scaling are affected by a bug preventing proper scaling on all screens. As a workaround start LibreOffice in Xwayland-mode (e.g. WAYLAND_DISPLAY= libreoffice).

To make it global either add it to the desktop/menu icon or create a custom script (easier since you only need one for all the suite apps, but don’t forget you created it)

sudo nano /usr/local/bin/libreoffice

#!/bin/sh
export WAYLAND_DISPLAY=
exec /usr/bin/libreoffice “$@”

sudo chmod +x /usr/local/bin/libreoffice

it looks ok now

I know the issue you mean, as I have two monitors with different resolutions too.

For me, I think the single environmental variable that made the difference, is

export WAYLAND_DISPLAY=libreoffice

I have that in my ~/.bashrc.