Different template

Hi guys,
I’m new with the Ionic world.
I’m trying to write an app that use the same controller code for mobile and desktop.
Is there a way to use a different view in base of the running device?
For example: I need to show some elements using ion-card. On browser they must be in a grid, to display 3 cards in a single row), while on mobile a single card for row in enought.

Thank you!