Is there a way to take form data and populate it into an Embed component on the same page?

I’m trying to make a page where a user can submit a YouTube video URL in a form, and the page will embed the video onto the page that it’s on. I would then like to use a button AND the rotate interactions to “flip” or mirror the video.

The tricky part is that the Embed component only accepts the /embed URL in an iframe.