Banning TikTok, which can be seen as a tool for the Chinese government to actively collect data in real time about American citizens, and a static book like 1984, is absolutely not the same.
Google, Facebook, etc all do that, and it's their entire business model.
The government has a long history of regulating the transmission of speech. The First Amendment protects us against them regulating the content of speech.
For example, campaign finance laws dictate who can fund speech in certain situations, but they don't dictate what a candidate actually says.
That said, the First Amendment is limited by "compelling government interest," so there are no absolutes. We are, as we have been for a few centuries, at the mercy of the whims of the Supreme Court. There are no absolutes, and the Supreme Court can interpret anything however they want.