Use imac 2020 as display for Macbook Pro 2019 16"
So a little context. I have a personal iMac 27" (2020) and a work MacBook Pro 16" (2019) for work. I want to be able to use my iMac as an external monitor when working but I've had no luck getting it to work. I have the Thunderbolt 3 USB-C cable connected to both devices but so far I've been unable to get the iMac to work as an external monitor.
Is this not possible, or am I doing something silly and missing a step?
iMac 27″, macOS 10.15