The US shifted from "China is an economic power we should worry about" to "China is a military power we should worry about", but to me it seems to be a recent mind shift serving the current administration narrative.
As a European, I don't think there is much hostility against China here. Sure, people don't like the overall humanitarian situation with Uyghurs; and there are the usual issues with lobbying, intelligence, and currency manipulation, but overall the general public sentiment is rather neutral I would say.