Trump's comments couldn't be more timely. Next week, Google, Facebook and Twitter representatives will testify before Congress, discussing censorship and election meddling.
The hearings mark the second time representatives from all the companies will be on Capitol Hill to address concerns of election interference. For Facebook, it will be the third, following CEO Mark Zuckerberg's grilling earlier this year over the Cambridge Analytica scandal. Twitter Chief Executive Jack Dorsey and Facebook Chief Operating Officer Sheryl Sandberg are among those confirmed to be attending the hearings.
Facebook and Twitter have suspended hundreds of accounts ahead of the November midterm elections to avoid interference from foreign actors. Facebook last week said it had removed 652 pages, groups and accounts linked to Iran over "coordinated inauthentic behavior" targeting people in the U.S., the U.K., Latin America and the Middle East. As of Tuesday, Twitter has removed 770 accounts over "coordinated manipulation" ahead of the midterms.
Trump's comments as a whole appear to represent a broader view among conservative circles that digital platforms are censoring them.
The president recently accused Twitter of "shadow banning" — allegedly limiting search results — for prominent Republicans, and called the practice "discriminatory and illegal." Twitter has denied the claims.
And earlier this month, multiple tech companies, including Apple, Facebook, Google's YouTube, Pinterest and Spotify, clamped down on content by the right-wing conspiracy theorist Alex Jones, removing podcasts, pages and other content.
Tech companies said they removed Jones for violating policies related to hate speech and harassment. "Apple does not tolerate hate speech, and we have clear guidelines that creators and developers must follow to ensure we provide a safe environment for all of our users," Apple said at the time.
Some right-wing commentators have criticized the mass takedown of Jones' content, saying it amounted to censorship.
—CNBC's Sara Salinas contributed to this report.