Even cigarette companies eventually stopped targeting children for harmful products. Social media will get there some day, with enough legislation.
No, they didn't, really. They just have made it less overt when direct, and do the rest of it through the non-cigarette tobacco product firms they invest in. The whack-a-mole on that industry and its marketing of nicotine addiction to children is ongoing.
Altria (one of the largest tobacco product seller) is the owner of the Juul company. They literally were told to stop marketing to children and then turned the ship around to push cotton candy-tasting nicotine to minors.
https://www.google.com/maps/@37.2803855,-121.9498283,3a,37.5...
In fact, they bought into the vape industry (at a time it could be marketed in a way that appeals to kids) after research showed that vaping was a gateway to cigarettes.