I have text content on a page that leads to too much scrolling on mobile devices. I'd prefer to avoid having separate pages for mobile/desktop. Ideally, an editor would add a shortcode around certain paragraphs to allow the additional content to be hidden/shown on smaller screens.
So all the text below would show on desktop, but the second paragraph would be replaced by a hide/show link on mobile:
Lorem ipsum dolor sit amet, sit at voluptatum complectitur. Ei per diam case neglegentur. Sea in minim virtute nominati, id pro aperiam pericula, vim te ornatus inciderint.
[HiddenInitiallyforMobile]Vis nominati ullamcorper eu. Animal quaerendum pri at, in mea prodesset temporibus appellantur, dicat clita vel no.[/HiddenInitiallyforMobile]
I'm surprised I haven't been able to find a plugin solution or obvious way of doing this. Maybe I'm thinking this through wrongly.