Easy, stop letting them dump other services for free on the backs of their other businesses. Search can stay ad-supported. Youtube, Gmail, Drive, Cloud, Stadia, Android, News? Should all be broken out into their own businesses and forced to be profitable on their own. As it is, nobody can enter those spaces without being willing to lose hundreds of millions (billions?) of dollars.
Prevent a global company from giving away products? So other big company can gain space?
All of the virtuals you mentioned have different stories. Cloud is profitable, and is not the top company anyhow. News is not a product it's a grouping of news stories. Youtube makes money through ads and better access and could be considered a loss-leader but shutting it down will not make the field more competitive. Android is open source.. and perhaps could be seen as dumping to prevent others. Gmail is a mail service, others exist.. and starting a new company will not cost you billions unless you plan on serving billions of people. Drive is one of many companies that didn't cost a billion to start but might be worth it now.. try dropbox or box.com or rapidgator.
Yes, global companies should not be able to give away products or operate services at absurdly unprofitable rates (see: Ridesharing, a myriad of other Google services) just because they have billions to burn. It's horrifically anti-competitive and raises the barrier of entry unnecessarily. It's not like vertical integration is some new invention, its historically been fought against by anti-trust regulators. We just live in a world where they effectively don't operate any more.