TikTok is preparing for widespread layoffs across its operations and marketing sectors on a global scale.