How do we use viewport instead of device?

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!

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

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.