One method used by modern societies to discourage anti-social behavior is shaming.
People who viewed as being intolerant or opposed to societal values are made fun of. Society causes them to feel shame for not following the politically correct societal values. Society can also ostracize the people who fail to follow the accepted societal value.
A farmer who refused to allow a gay wedding was ostracized from the farmers market.