Trump's comments before a crowd of conservative supporters in Phoenix, Arizona, were one of the strongest signals yet that he opposes a potential exit of TikTok from the US market.

The US Senate passed a law in April requiring TikTok's Chinese parent company, ByteDance, to divest the app, citing national security concerns.

TikTok's owners have sought to have the law struck down, and the US Supreme Court has agreed to hear the case. But if the court does not rule in ByteDance's favor and no divestment occurs, the app could be effectively banned in the United States on Jan. 19, one day before Trump takes office.