Before Vatican II, multiple popes and councils allowed for governments to persecute “heretical” Christians. That is to say, every baptized person who’s not an orthodox Roman Catholic. In fact, Catholic kings used to promise to do just that as part of their coronation oaths. At Vatican II, the Church denounced this policy, and said that it violates natural law.
Source