If the legislation is passed, social media platforms including X, TikTok, Instagram and Facebook would have one year to work out how to exclude Australian children.