Isn't there a way to style CSS tiktok and instagram embed?

If you embed a tiktok video like this:

<iframe src="https://www.tiktok.com/embed/v2/7181493818871565574" height="800" width="400">

you can add styles to a Discourse theme like this:

iframe {
  border: 1px solid red;
  border-radius: 20px;
}

but you’re limited to only editing the iframe tag itself