The right cable

SunSprout runs over one cable between your Mac and the iMac: Thunderbolt for the best picture, or USB SuperSpeed from a Mac with Apple silicon to any iMac up to 2020. A cable that only charges won’t carry the picture.

Late 2012 to Late 2015 iMacsYour iMac

Adapter plus a Thunderbolt 2 cable

Mac Adapter Thunderbolt 2 cable iMac
Apple Thunderbolt 3 (USB-C) to Thunderbolt 2 AdapterModel MMEL2AM/A. Goes into your Mac
On Amazon ↗
Thunderbolt 2 cableSame plug on both ends, from the adapter to the iMac
On Amazon ↗
A Mini DisplayPort cable looks the same and won’t work. Check for the lightning-bolt symbol on both plugs.
2017 or later iMacsYour iMac

One Thunderbolt cable

Mac Thunderbolt 3, 4 or 5 cable iMac
Thunderbolt 3, 4 or 5 cableUSB-C on both ends, with the lightning-bolt mark
On Amazon ↗
The USB-C cable that came with a MacBook charger is a charging cable. It fits, and it won’t work.
Any iMac up to 2020,
from a Mac with Apple silicon

A USB SuperSpeed cable

Mac USB SuperSpeed cable USB-CUSB-A iMac
USB-C to USB-A cable, 10GbpsUSB 3.1 or 3.2 Gen 2, 1 m or shorter
On Amazon ↗

On the box, look for "USB 3.2 Gen 2", "10Gbps" or "SuperSpeed". Avoid cables sold for charging only.

Not sure? Plug in the cable you have. SunSprout tells you straight away whether it can carry the picture. Or search Amazon for a 10Gbps cable ↗