A neutral term for this in politics is Communitarianism (not to be confused with Communism or Communalism). Communitarianism is a general belief that a person's personality is molded by the community more so than the individual themselves and that because of this, laws should be written so the community promotes good ideas and morality.
Communitarianism is sort of a center political issue as it can be exhibited in both sides of a political debate. For example, in the United States, when discussion of how to stop mass shootings, one side might take issues with the availability of guns in American Society and how we need more laws that restrict access to guns, while the other side will often cite points about how many mass shootings are the results of poor mental health services in the United States OR how American society has been eroding the importance of Fatherhood (many recent mass shooters had no father figure in their lives).
Which ever side you come down on, both argue from a point of view that the problem is societal and not individual... that there is someone, other than the guy who shot a bunch of people, who is to blame for the tragedy and that if the laws could cure what causes this, we'd see a drop.
Other issues where this was seen to not work was the Prohibition Era. The thinking was that Americans drink a lot, drinking has negative effects on society, and we should ban alcohol from being consumed. It didn't work and actually had the opposite effect of people drinking more and due to the lack of regulatory controls on the supply of any illegal good, more dangerously. It didn't stop crime, but made it a golden age for organized crime in the United States. But the solution was Communitarianism laws in action - if society can be more moral than individuals can be more moral.
And the laws need not be bans... Smoking is bad for you. Drinking is bad for you. Too much sugar is bad for you. Let's tax these products higher so you lose more money when you participate. The mockery of the idea is why many people refer to prostitution as "The World's Oldest Profession" despite almost every society in history having a negative view of people who sell themselves for sex, people still do it even when it's illegal.