SAN FRANCISCO — President Donald Trump and the European Union, who don’t agree on much, have a new dispute: how to handle the enormous power of modern tech companies.

On Thursday morning, Trump tweeted a complaint about the $5 billion fine that E.U. regulators levied against Google for squeezing out rivals through its mobile Android operating system, claiming that it reflected just another example of Europeans' taking advantage of the U.S.

I told you so! The European Union just slapped a Five Billion Dollar fine on one of our great companies, Google. They truly have taken advantage of the U.S., but not for long! — Donald J. Trump (@realDonaldTrump) July 19, 2018

The E.U. perspective, however, is the polar opposite. In European eyes, the U.S. has allowed its tech companies to become too powerful, forcing the E.U. to step in.

The most recent fine centered around Android, the mobile operating system that Google gives away to smartphone manufacturers — which helps push people to use Google apps, including the basic search function.

“Google has used Android as a vehicle to cement the dominance of its search engine,” said Margrethe Vestager, the E.U. commissioner in charge of competition policy, in a statement. “These practices have denied rivals the chance to innovate and compete on the merits.”

The punishment was not a one-off. In June 2017, the E.U. hit Google with a then-record $2.7 billion fine for displaying its own shopping results in its search engine before those of competitors.

The main U.S. regulator, the Federal Trade Commission, has in recent years been less keen to go after tech companies. In 2012, the FTC issued a then-record $22.5 million fine against Google for misleading consumers about the privacy of Apple’s Safari browser.