For Android, turn on Bedtime Mode or tweak the color correction setting. Downgrading to a simpler phone, such as an old-school flip phone, could also help curb social media compulsions.