If you're the US, step one is to ban high fructose corn syrup in food as being unsafe for human consumption. Step two, increase the cost of junk food via taxes. The US allowed its obesity epidemic to get out of control by making junk food too inexpensive and allowing high fructose corn syrup to be put into too many products. If Doritos cost $8 per bag instead of $4, people will eat a lot fewer bags; if boxes of Little Debbie snack cakes cost $5 instead of $2, people will buy fewer boxes. Regulating sugar in relation to calories in a packaged consumer food item, may also work quite effectively as a simple slider to test (just begin by gently nudging it downward, see what happens).
Frankly, often when I hear somebody like the commenter above I think they may have had some rowdy teenage years in the 80s or thereabouts and is kind of projecting that onto today's youth. "The laws don't work!" Maybe it wouldn't have worked for them. But in the time since...
Although, I don't think it's realistic to expect the laws to get consumption to zero. Maybe it's not even strictly the goal. Reduction, or mild taboo, is not the same as total elimination. People can still buy their kids sugary snacks. I give my kids sugary snacks in small amounts, but might support such a ban, because childhood and adult obesity is a pretty serious problem.
Here's what I get from some quick googling.
Decline in underage drinking, 1991-2013: https://pubs.niaaa.nih.gov/publications/surveillance101/Unde...
Youth use of cigarettes declining (though I believe I have read that vaping counter-acts this trend when looking at all nicotine products): https://www.hhs.gov/ash/oah/adolescent-development/substance...
and I was more specifically commenting towards they who are apparently the arbitrator of "cool and uncool"
Since the article is about Mexico... I have spent substantial time in Spanish speaking places. But I am unaware of current trends in Mexico, haven't been there in particular since 2006. Probably lots of smokers. Latin America tends to have more smoking than here too. I suppose they did invent the stuff.