Any monitor over 1024 pixels can be used with the Pi. Displays under 1024px when used with the visual desktop and Thonny, become difficult to use.
Plug in the HDMI cable, and if touch is available, the USB cable.
Troubleshooting! CRASH!
Sometimes, the VNC window will crash on Raspberry Pi 5 if the monitor is plugged in before you start the VNC viewer. Easily fix this by temporarily unplugging the HDMI cable from the pi or monitor, then replugging it AFTER you open the VNC window.
If all else fails, try this
Step 1: Adjust the Raspberry Pi resolution to 1024 x 600 for the monitor.
Open the terminal and edit this file:
$ sudo nano /boot/firmware/config.txt
Step 2: Using the down arrow, scroll all the way to the bottom of the file, and past these
# Custom HDMI configuration
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=82
hdmi_cvt=1024 600 60 3 0 0 0
dtoverlay=vc4-kms-v3d
max_framebuffers=2
Step 3: Press control + X to exit.
Type "Y" to say yes to the changes and save the file.
Do not change the name or location of the file. Just press enter.
Step 4: Restart the Raspberry Pi