Looking to add external SSD to my 2017 iMac

Does it have to be Mac specific? I’m looking to go budget friendly and seeing plenty of good options on Facebook marketplace but not sure the compatibility and which I need to buy!

Sorry I’m dumb