Different links for the same button across different breakpoints

Hi. Is it possible to have the same button link to two different locations if the user is viewing on desktop vs mobile.

For example, I’d like the button to open a light box when viewed on desktop, but the same button open an external link when viewed on mobile.

Thanks

So with the cascading design , you can change the design of the site but not the data (where the button links to would be considered data). So you could display one button on a breakpoint that links to the lightbox and then hide it on the lower breakpoint. Then the same for the button on mobile.