On this page: Learn how to configure mobile viewports and use them to preview and build experiences for screens of various sizes.
style
shade-box
Mobile viewports display Adobe Target activities at the screen sizes of various devices. They are designed for responsive sites, which adapt automatically to desktops, laptops, tablets, and mobile phones, and they make it possible to check that an experience renders well on each of them.
NOTE
Use mobile viewports when the site is responsive and the mobile page reuses the elements of the desktop page in a different layout. When the mobile site is separate and has its own structure, such as m.mysite.com, use a multipage activity instead.
Mobile viewports are not available when a redirect offer overlay overlaps them.
Viewports and CSS breakpoints
A viewport is the area of the screen that a web page fills: the size of the browser window, minus the scroll bars and toolbars. Browsers measure it in CSS pixels, so on many devices, such as those with retina screens, the viewport is smaller than the advertised device resolution. Always use the viewport size in Target. The following table lists both values for popular devices.
Viewports and resolutions of popular devices
note
NOTE
Various websites list viewport sizes for popular devices. For example, see https://viewportsizer.com/devices/. Consult the device maker’s website for the most accurate, up-to-date information.
A responsive site switches to a different layout at specific screen sizes. These sizes are called CSS breakpoints, or media queries. Saving the CSS breakpoints of the site in Target makes it possible to preview each view, and clicking a viewport along the top of the display opens the view for that screen size.
To deliver an activity to a particular device, select the audience for that device in the activity diagram, then edit the page for that device in the Mobile Web Composer. The same tool is used to view a site that is not responsive when the activity targets a specific device. To run an activity on all devices, apply no targeting and preview the activity at each screen size with mobile viewports.
IMPORTANT
Experiences can be edited from within mobile viewports, but the changes apply to all viewports and devices, not only to the viewport in use. In the same way, editing an experience in the desktop view changes the page for all screen sizes. Target does not currently support viewport-specific page changes.
Mobile viewport configuration task_B4B161499DC0470584ED922A4D20FCAB
Define the mobile viewports that are available when creating experiences.
In the Mobile viewports configuration section, click Add.
Or
To change the configuration of an existing mobile viewport, select that viewport, then click the Edit (pencil) icon.
Type a descriptive name for the mobile viewport. The name can be up to 36 characters long.
Enter the screen size of the mobile device. The width can be 150 to 968 pixels and the height can be 150 to 1280 pixels.
(Optional) Select the operating system of the device.
Options:
Android
iOS
Windows
Symbian
Blackberry
If the Enhanced Experience Composer is enabled and an operating system is selected, Target emulates that device when the page is viewed. For example, if the responsive site has a different look and feel for Android than for iOS, Target mimics that behavior.
Click Save.
NOTE
Attempting to delete a mobile viewport that is in use displays the following message: “This viewport is currently associated to one or multiple activities. You need to remove the viewport from those activities before being able to delete it.”
Create a responsive experience task_D6332438B5EE48CCA8AF199270F1CAEF
Add mobile viewports to Target activities to create responsive experiences for mobile screens.
In the Visual Experience Composer (VEC), click the Settings gear icon, then select Add Mobile Viewports.
Click the Devices icon, then enable each device that should have a mobile viewport.
The mobile viewports are listed from smallest to largest according to width.
Edit the experience in the mobile viewports as needed. Any change applies to the experience on all devices, for example a change to the text of a heading. Hover over the name of a viewport to see the size of the viewport.
(Optional) Toggle between portrait and landscape modes by clicking the orientation icon.
Training videos
The following videos contain more information about mobile viewports.
Visual Experience Composer (2 of 2) (7:29)
The following demo video includes information about using the Visual Experience Composer to work with mobile viewports:
Rename and duplicate an experience
Create a redirect experience
Target an activity to a single URL or a group of URLs
Create a multi-page activity
Preview and build experience for responsive websites