There have already been plenty of examples of this throughout history! Empires and Monarchys have ruled according to their ‘faiths’ and imposed - if you will - their faiths on the subjects of their reigns. Others changed or converted their rules to the ‘laws’ of their faiths and spread it where they conquered or ruled. Oriental dynasties also did the same.
Currently, Islamic countries, still demontrate what it looks like; Iran,etc.
In England, the law overtook the monarchy. It’s currently known as ‘broken England’ by some, yet the Monarch is head of the faith there!
In the USA, ‘freedom’ is becoming 'not allowed to express an opinion against anyone!
The Holy See as a country is the perfect example of your question, yet it does not and cannot exist in a vacuum.