Skip to main content
Contributor IV
January 26, 2022
Solved

Show/Hide content block based on someone's device

  • January 26, 2022
  • 2 replies
  • 285 views

I’ve got an email in a flow pushing our app and I’d like to show/hide the CTAs based on the mobile device the email is open in (i.e. only show the iOS CTA for iOS phones). 

 

Is this doable? 

    This topic has been closed for replies.
    Best answer by David To

    Hello @Leo Pure Electric,

    Although you can designate email content to show on certain devices such as desktop or mobile, you wouldn’t be able to further target based on the OS (operating system) your recipients are reviewing the email from. 

    One way this would be accomplishable would be if you were already collecting this OS data from your recipients and previously stored as a custom profile property. With this information collected, you can leverage the show/hide function to display if a recipient meets this show/hide criteria of having this particular custom profile property. 

    To learn more about this work around, I recommend taking a look at our How to Show or Hide Template Blocks Based on Dynamic Variables Help Center article and some Community posts that discuss this topic. I’ve included some below that I think may help you:

    I hope this helps!

    David

    2 replies

    David To
    Klaviyo Employee
    David ToAnswer
    Klaviyo Employee
    January 27, 2022

    Hello @Leo Pure Electric,

    Although you can designate email content to show on certain devices such as desktop or mobile, you wouldn’t be able to further target based on the OS (operating system) your recipients are reviewing the email from. 

    One way this would be accomplishable would be if you were already collecting this OS data from your recipients and previously stored as a custom profile property. With this information collected, you can leverage the show/hide function to display if a recipient meets this show/hide criteria of having this particular custom profile property. 

    To learn more about this work around, I recommend taking a look at our How to Show or Hide Template Blocks Based on Dynamic Variables Help Center article and some Community posts that discuss this topic. I’ve included some below that I think may help you:

    I hope this helps!

    David

    Contributor IV
    January 27, 2022

    Gotcha. Thanks

     

    Leo