You can disable targeted ads on most platforms, which will make the ads you see less relevant.
However, you’re right—ads for alcohol shouldn’t appear when searching for information on quitting drinking. I recall a liquor store offering discounts on drinks in exchange for the sobriety tokens people receive.