That's an opportunity for an ideology based index fund.
Of course, having said that...
I'm not sanguine about the relative performance of such an instrument.
One of my favorite quotations is from A Man for All Seasons, with Paul Scofield as Sir Thomas More. "If we lived in a state where virtue was profitable, common sense would make us saintly. But since we see that avarice, anger, pride and stupidity commonly profit far beyond charity, modesty, justice and thought, perhaps we must stand fast a little, even at the risk of being heroes."
These already exist, they're just expensive.
A liberal, globalist politics really IS best for Google, Apple, Microsoft and many others, and thus it is correct for their leaders to say so. If you on the other hand dislike liberal globalism, then you have the choice to divest from/not profit from those companies. (Alternatively, you could invest in them as a kind of personal diversification.)
You have to make choices, and those choices have costs.