Can I edit html of an iframe if I CNAME it?

I have an embedded iframe from a domain I don't control and I need to replace a link in the iframes content with another link.

Is this something I can do with a CNAME cloudflare to the iframe + a CF worker?
Was this page helpful?