The Technology Secretary said all social media platforms must meet their legal duties and provide a safe and age-appropriate service.