No William was Dutch ...
but he was married to Mary the daughter of the last Catholic king of England, James II..
they reigned together...
William deferred to Mary in England and was in Holland much of the time. He did rule England after Mary’s death in 1694.
But, it was not until George the 1st, that Parliament passed the law stating one must be a natural born citizen to hold office. George the 1st was German and only king because he was not a Catholic.
That gave Parliament the political power to pass laws that were in the best interest of England.