Framework did it.

Yes, but only on laptops designed for it—most notably Framework’s modular laptops and some older business models like the ThinkPad X1 Carbon (certain generations).

The trick is that these laptops treat the motherboard as a single replaceable unit. You buy a new motherboard with more RAM (and usually a newer CPU), swap it in, and you’re done. Framework sells upgradeable motherboards directly, and some Dell/HP business lines have done similar field-replaceable boards. But this is the exception, not the rule.

For the vast majority of ultrabooks (MacBooks, Surface Laptops, Dell XPS, etc.), the RAM is soldered directly to the board and the motherboard itself is not designed to be swapped for a different spec. Even if you could physically swap it, the chassis, connectors, and firmware are often locked to a specific configuration. So don’t count on it.

If upgradability matters to you, buy a Framework or a laptop with socketed RAM. Otherwise, you’re stuck with what you buy.