Score:0

Is there a way to not render blocks for mobile devices that works for anonymous users?

ng flag

I'm trying to dynamically render a block on for desktops. I've tried detecting in a page preprocess and using the set variable to dynamically render the block in the page template but there seems to be an issue with anonymous users and caching the value.

There's a module called Mobile Detect that is supposed to accomplish this but it seems to be plagued with the same issue for anonymous users:

https://www.drupal.org/project/mobile_detect/issues/2627504

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.