Denmark has a Lutheran Church that is run by the Danish Royal Family. The Lutheran Church is run by state law, state morals, etc. It was so thorough that if in Denmark you were a member of the royal family and you changed from this Lutheran Church, your eligibility as a potential crown successor is completely forfeit.
It won’t happen legally in the Catholic Church, what is and does happen though is the mockery of whatever church or religion that is not a practicioner of SSM will be mocked and poked fun of all over the place for not being like the state church. Remember though, that in the tradition of Christ, the mockery is worth it, for “So did they the prophets before me”
Now large crowds were going along with Him; and He turned and said to them, “If anyone comes to Me, and does not hate his own father and mother and wife and children and brothers and sisters, yes, and even his own life, he cannot be My disciple. “Whoever does not carry his own cross and come after Me cannot be My disciple. (Luke 14:25-27)