You can optionally name containers using a @container/{name} class, and then include that name in the container variants using classes like @lg/{name}:underline: @xs @container (min-width: 20rem /* ...
This Obsidian plugin will turn Twitter and YouTube links into embeds when the file is previewed, without changing the contents of your file. Even works when hovering over internal links.