WASHINGTON >> TikTok flickered back to life in the United States on Sunday after President-elect Donald Trump said that he would issue an executive order to stall a federal ban of the app.

The abrupt shift came just hours after major app stores removed the popular social media site and it stopped operating for U.S. users as a federal law took effect Sunday. The company said in a post on the social platform X that in “agreement with our service providers, TikTok is in the process of restoring service.”

Trump said in a Sunday morning post on Truth Social that he would “issue an executive order on Monday to extend the period of time before the law’s prohibitions take effect, so that we can make a deal to protect our national security.”

The ban stems from a 2024 law that requires app stores and cloud computing providers to stop distributing or hosting TikTok unless it is sold by its Chinese parent company, ByteDance. Lawmakers passed the law over concerns that the Chinese government could use the app, which claims roughly 170 million U.S. users, to gather information about Americans or spread propaganda.

App stores and cloud computing providers that do not comply with the law face potentially significant financial penalties. Trump said in his post Sunday that his order would “confirm that there will be no liability for any company that helped keep TikTok from going dark before my order.”

The possibility of an executive order — followed by TikTok’s stunning about-face — marks a new phase in the fight over the future of the app, which has reshaped the social media landscape, defined popular culture, and created a living for millions of influencers and small businesses that rely on the platform.

In issuing an order, Trump would raise questions about the rule of law in the United States. His action would constitute an attempt to temporarily neuter a law that passed with broad bipartisan support in Congress and that the Supreme Court unanimously upheld last week.

“We thank President Trump for providing the necessary clarity and assurance to our service providers that they will face no penalties providing TikTok to over 170 million Americans and allowing over 7 million small businesses to thrive,” TikTok said in a statement announcing that the app was coming back online.

Policy experts and lawmakers from both sides of the aisle issued early warnings that the law is still valid and enforceable. TikTok remained unavailable for downloads on the Google and Apple app stores, suggesting that some companies continued to enforce the ban.