Are there ways to switch artboards while playing ?

I have a large rive anim, that I use as a hero section on a webpage.
My goal is to get the rive-anim to play/show different artboards depending on the width of the webpage (without reloading/repainting the webpage).

The rive file has two different artboards:
• desktop (wide animation)
• mobile (tall simplier animation)