# How do we use viewport instead of device?

**URL:** <https://forum.builder.io/t/how-do-we-use-viewport-instead-of-device/3447>\
**Category:** Technical FAQs\
**Created:** [March 30, 2023, 9:09pm UTC](https://forum.builder.io/t/how-do-we-use-viewport-instead-of-device/3447 "2023-03-30T21:09:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![morty](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@morty](https://forum.builder.io/u/morty)\
**Post date:** [March 30, 2023, 9:09pm UTC](https://forum.builder.io/t/how-do-we-use-viewport-instead-of-device/3447/1 "2023-03-30T21:09:25Z")

</div>

Hello! I have 2 content entries, one targets device = desktop, the other targets device = tablet or mobile.

If i resize my browser window to be the same size as a tablet/mobile view, I am still seeing the targeted desktop content. I can see that the device user attribute being passed is still desktop.

I want to be able to see my tablet/mobile view when I resize my actual browser screen on desktop as well. I don’t want to use just device, I would like to rely on the viewport instead/screen size.

Is this possible?

Thank you!

---

<div class="post-metadata">

**Author:** ![nicke920](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nicke920](https://forum.builder.io/u/nicke920)\
**Post date:** [March 30, 2023, 10:26pm UTC](https://forum.builder.io/t/how-do-we-use-viewport-instead-of-device/3447/2 "2023-03-30T22:26:48Z")

</div>

Hi there,

Thanks for reaching out!

For targeting, for Growth and Enterprise plans, you are able to target by URL path or Device. For anything else, you will need to create custom targeting attributes

- [Using Custom Targeting - Builder.io](https://www.builder.io/c/docs/custom-targeting-attributes)

To show/hide content based on screen sizes, this would be like making your webpage responsive. For this, we have multiple features. Under Visibility, there are toggles to hide on screen widths of certain devices.

You can also utilize the use of breakpoints.

- [Responsive design with Builder.io - Builder.io](https://www.builder.io/c/docs/guides/responsive-design)
- [Breakpoints - Builder.io](https://www.builder.io/c/docs/breakpoints)
