raspberrypi – How to install GUI to Ubuntu Server 20.04.1 for Raspberry Pi?

I have installed the CLI OS for the Ubuntu Server onto my Raspi 4 4GB, but when I try to install a GUI to work in, I am sent back to a screen that is in CLI, but I can’t type or perform any functions. Does this mean that my OS is corrupted or have I made a mistake in the install of the GUI? Alternatively, is it better to just use the CLI for a server?