Change Screen Resolution for Mac Built-in VNC (Screen Sharing)
I found the solution in this article:How to change Macbook Screen Resolution Manually.
I used the DisableMonitor application.
https://notebooks.com/wp-content/uploads/2016/02/disablemonitor-resolution-menu-1024x754.png