There are many examples, but the most famous is TikTok. They had to either sell part of their company [to an American company] or be banned in the US. They didn't sell so now they're being banned. https://en.wikipedia.org/wiki/Restrictions_on_TikTok_in_the_...
Much more common than an outright ban is simply egregious tariffs. (Which didn't do anything to stave off foreign competition or increase local competition, but it did line our pockets)