I think an easier way to achieves instead of imposing this on everyone. Social media companies should be required to add paid tier where the individual user can block the types of the user does not want to see, (or just block all of them).
In some places perhaps the government would ban "free social media" and only allow the paid tier to operate.
This in the best case would make the price reasonably low, if the social media company does not want to lose a lot of users. Perhaps even subsidised. At which point the goal set above is achieved.