have been going at this in js for the button-card and extensively documented in How to make scroll-time/speed and TranslateX string length dependent in css animation - #11 by Mariusthvdb
it cant be done, and we need to either have a duplicate button-card with conditionals/visibility set on the media_query, as documented there.
Or:…
have the here FR’d new entity update the card … there is no other way.
Fr holds !