# Existe uma forma de habilitar um componente apenas no celular?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-enable-a-component-only-on-mobile/394235
**Category:** Support
**Created:** [Janeiro 23, 2026, 11:04pm UTC](https://meta.discourse.org/t/is-there-a-way-to-enable-a-component-only-on-mobile/394235 "2026-01-23T23:04:26Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [Janeiro 23, 2026, 11:42pm UTC](https://meta.discourse.org/t/is-there-a-way-to-enable-a-component-only-on-mobile/394235/4 "2026-01-23T23:42:09Z")

</div>

O exemplo está nesse tópico mesmo

> [@system](#):
>
> ```plaintext
> import Component from "@glimmer/component";
> import { service } from "@ember/service";
> 
> class MyComponent extends Component {
> @service capabilities;
> 
> <template>
> {{#if this.capabilities.viewport.lg}}
> Este texto será exibido para dispositivos maiores que o ponto de interrupção lg
> {{/if}}
> 
> {{#unless this.capabilities.viewport.sm}}
> Este texto será exibido para dispositivos menores que o ponto de interrupção sm
> {{/unless}}
> </template>
> }
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-enable-a-component-only-on-mobile/394235)._
