I had my Pi 400 scaling go wonky  when using VNC.

To reset it run:

export DISPLAY=:0
xrandr --fb 1920x1080