The TikTok logo is seen on display at an event in Hangzhou, China.

A U.S. federal appeals court panel on Friday unanimously upheld a law that could lead to a ban of TikTok in a few short months, handing a resounding defeat to the popular social media platform as it fights for its survival in the U.S.