It’s an economic problem not a technological problem. Surveillance driven advertising became the business model of the net because people don’t pay for content online. That left advertisers as the only true customers, and companies and ecosystems grow toward and around their customers the way plants bend and stretch toward light.
Making the Internet more secure would not have changed this. Surveillance is built into consumer technology directly because advertisers pay more for access to people than people pay directly.
Advertising is the primary force behind this. Government driven surveillance is secondary and really just piggybacks on systems created and sustained by the ad and PR industries.
One of the things you learn as an older engineer is that a lot of stubborn technology problems are stubborn because they are not technology problems. They are socioeconomic or political problems. Privacy online is one of these.
The only way I see this changing is if people change their buying behavior and start demanding privacy, avoiding insecure products, and being willing to pay for it.