What if Elisabeth II fell in love with Franz of Bavaria or did the marriage in order to unite the Jacobite and Sophia succession, this means Franz of Bavaria needs to convert to Anglicanism from Roman Catholic Church, I think they could be co regents or Franz of Bavaria will be a Prince Consort.
I think the marriage would mean that he would support the abolition of the barring of Catholics from the throne.