Card Template Conditionals for Mobile

Is there a way to use card templates to change the content of the card for mobile using conditional replacement? For example something like {{#Mobile}} <mobile content> {{/Mobile}}? I would like to change the content of a string depending on if the card is being displayed on mobile or not. Here is my current card, doing this using JS which seems unnecessary.

<iframe src="https://wikipedia.org/wiki/{{Country}}"></iframe>

<script>
(function(){
const iframe = document.querySelector('iframe');
const isMobile = document.documentElement.classList.contains("mobile");
if(isMobile){
	iframe.src = iframe.src.replace('://w', '://m.w')
}
})();
</script>

There isn’t. Previous discussion: [Suggestion] Add {{#OnDesktop}}{{/OnDesktop}}

2 Likes