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="{{Country}}"></iframe>

const iframe = document.querySelector('iframe');
const isMobile = document.documentElement.classList.contains("mobile");
	iframe.src = iframe.src.replace('://w', '://m.w')

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