Install VNC Server on the Mac you’re controlling
Once that’s done, run the installer on the machine you want to control. You will need to have admin rights. Also, if your Mac is running 10.14 Mojave or later, there are some permissions that you will need to grant. These are necessary for full Mac screen sharing.