Instagram will restrict users under 18 from seeing posts promoting weight loss products or types of cosmetic surgery.