The Canon EF-S 24mm f/2.8 STM will work on Canon’s APS-C digital SLR cameras, but NOT full-frame digital SLR cameras. It will also work on their EOS M system and RF-mount cameras, but only with the appropriate adaptors, and it will only give an APS-C image circle. Got that?! …well, still less complicated than the compatibility issues for old Nikon DSLR lenses heh heh.
Re-review for 2023: Canon EF-S 24mm f/2.8 STM on an EOS R7
Canon EF-S 24mm f/2.8 STM