Have you tried setting the VNC headless resolution in raspi-config? I don't know if it covers your use case as I never run with a screen attached. Option 2 then option 03.
Code:
sudo raspi-config
Statistics: Posted by nigelbartlett1 — Sat Jun 08, 2024 7:31 am