Different content for cordova/mobile and browser application

I need to display different content on main page of client vs cordova/mobile.

What I would do is to create a global helper…

Template.registerHelper('isMobile', () => {
	return Meteor.isCordova;
});

…and use this in my template (jade/pug)

template(name="example")
	if isMobile
		h1 Mobile title
	else
		h1 Different content

Is this the correct way to do that?