Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
The SSDs for the desktop Macs are in sockets and can be replaced if needed by authorized technicians. A few Macs can even be upgraded but it is quite expensive to do so.
That is only true for the Mac Studio (and Mac Pro?). The SSD for the Mac minis and iMac are soldered. Just watch a YouTube tear down video
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.