Yeah, but the difference between Princess Margaret and Prince Charles & Prince Harry was the fact that the Parliament would not allow Princess Margaret an exception. The Queen was willing to allow Margaret to marry in the Church of Scotland, but her advisers told her that the Church of England and the Parliament would never allow it.
Parliament did allow Prince Charles and Prince Harry their current situations.
And in regards of the Church of England, for Prince Charles, he didn’t get married in the Church of England and the Church of England pulled out a penitence prayer that they created for Henry VIII.
In regards to Harry, Megan was just baptized (according to the
Telegraph) so I’m sure the Church of England was able to dissolve her previous marriage using something similar to Petrine privilege and/or Pauline privilege