The code for these Show Hide Button / Toggle Switches use only CSS (no JavaScript). Therefore, these buttons work both on AMP and Non-AMP pages. The code also works for Accordions on both AMP and Non- AMP pages by giving unique Id to each input type checkbox element on a page. The main requirement for this code to work is that the 'DIV' or any other HTML element whose content is to be toggled (shown/hidden) must be placed next to the '</label>' tag.
You may replace Up / Down triangles with any other text in the CSS code.