The only way to be immune is make ads and tracking impossible or at least not profitable enough for bigcorps to care about putting them there. So, maybe a web without Javascript, images, or videos, lol. Something truly primitive like the Gemini protocol.