Smoking is a great example and an almost 1:1 parallel to what's happening with gambling, they had teams of people and even paid off scientists to fabricate studies about the health benefits of smoking, and then used deceptive marketing that was very carefully crafted to ensure people tried it out, and the product itself is just inherently addictive. They ensured they can capture the next generation by specifically tailoring their adverts towards children and getting them curious to try tobacco.
As a result most of the world has banned tobacco advertising, and a lot of places are doing things like enforcing ugly generic packaging with extreme health issues plastered on the boxes, exorbitant prices & taxes on tobacco because of what Big Tobacco did.
Gambling should be treated the exact same as tobacco is and was. Advertising it should never be allowed in any context whatsoever, and the gambling spots and apps should have disclaimers all over the place indicating the dangers of it. Additionally, the actual companies should be heavily regulated to not be allowed to offer "perks" and to also not be allowed to pick who can play or not.
Gambling, like most things, is simply something that will always be a thing, so just like tobacco and alcohol it shouldn't be banned outright. That doesn't mean we need to let predatory practices proliferate. Nothing is stopping us from making gambling as unattractive as we reasonably can, both for the gamblers and the gambling companies. There will still be gambling, but just like tobacco there will be a lot less people doing it, and at that point the ones that are are at least as protected and informed as possible.