Modern Web Component implementation with Shadow DOM encapsulation.
Traditional iframe-based implementation for legacy compatibility.