---
title: "Layout"
canonical_url: "https://docs.sportradar.com/resources/audiovisual/docs/audiovisual-client-documentation/embet/web/web-layout"
markdown_url: "https://docs.sportradar.com/resources/audiovisual/docs/audiovisual-client-documentation/embet/web/web-layout.md"
last_updated: "2026-10-02T08:58:45Z"
---

# Layout

> **Concept:** [Layout and resizing](https://docs.sportradar.com/resources/audiovisual/docs/audiovisual-client-documentation/embet/features/feature-layout-resizing.md)

On mobile web, enable scaling after init so the overlay matches the viewport. Reference size, `hostElement` behavior, and desktop guidance are on the concept page.

```javascript
await embet.init({ clientId: 'YOUR_CLIENT_ID' });

embet.resizeConfig({
  enabled: true,
  hostElement: 'body',
});
```

Place `<embet-overlay>` over your player with CSS (`position: absolute`, flex, or full-screen wrapper). Use `hostElement` when the visible area is not `document.body` (for example a dedicated player container).
