As far as I know, you cannot remove an element from the DOM from the iframe container if it is not the same domain, if I understand you correctly because of cross-domain security policies.
If it were possible, you could infiltrate banking sites and that’s all, it would be a mess.
source
share