> For the complete documentation index, see [llms.txt](https://help.twinr.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.twinr.dev/screen-customization/hide-elements.md).

# Hide Elements

Remove parts of your website that do not belong in a mobile app.

Websites carry things an app does not need — a site header duplicating your app's navigation, a cookie banner, a newsletter popup, a footer full of links. Hiding them makes your app feel built for a phone rather than borrowed from a browser.

{% hint style="success" %}
**Your website is not changed.** These rules apply only while the page is displayed inside your app. Visitors on the web see your site exactly as before.
{% endhint %}

Open **General Settings → Hide elements**.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2Fgit-blob-ca22e4ac59e99f34d6316b9a199b79e317d535be%2Fscreen-cust-hide-elements.png?alt=media" alt="The Hide elements tab with two entries, each having an element identifier and a list of screens"><figcaption></figcaption></figure>

## Add an element

Click **Add element** and fill in two fields:

<table><thead><tr><th width="210">Field</th><th>What to enter</th></tr></thead><tbody><tr><td><strong>Element's Identifier</strong></td><td>A CSS selector for the thing to hide — <code>header</code>, <code>.cookie-banner</code>, <code>#newsletter-popup</code>.</td></tr><tr><td><strong>Screens</strong></td><td>Which screens to hide it on. Pick one, several, or all of them.</td></tr></tbody></table>

Because each entry has its own **Screens** list, you can hide your site header everywhere but keep the footer only on your About screen — all from this one tab.

## Finding the selector

Open your site in a desktop browser, right-click the element you want gone, and choose **Inspect**. The highlighted tag shows its `id` and `class`:

* an `id` becomes `#name`
* a `class` becomes `.name`
* a plain tag is just its name, such as `header` or `footer`

{% hint style="warning" %}
**Prefer tags and IDs over generated class names.** A class like `._topbar_1xe1m_3` is produced by a build tool and changes the next time your site is deployed — and when it does, the element quietly comes back. `header` keeps working.
{% endhint %}

Click **Save as draft**, then refresh the Twinr Preview app to check the result on a phone.

## Common Questions

<details>

<summary>The element is still showing.</summary>

Either the selector is wrong or the element loads after the page. Confirm it by running `document.querySelector('your-selector')` in your browser console — if that returns nothing, the selector does not match.

</details>

<details>

<summary>Hiding the header left a gap.</summary>

The element is hidden but its space may remain, depending on how your site is built. Use Custom CSS to collapse the space as well.

</details>

<details>

<summary>Can I hide something on one screen only?</summary>

Yes — that is what the **Screens** field is for. Add the element and pick just that screen.

</details>
