Hi @estudovt. Sorry about the delay, I have a solution that needs improvement when time allows. Please add this code snippet:
add_action('amp_post_template_head','ampforwp_register_analytics_scripts', 88);
function ampforwp_register_analytics_scripts(){ ?>
<script async custom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script>
<script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
<?php
};
function jozz_ampsidebar_add_head_html2() {
?>
<amp-accordion id="my-accordion" disable-session-states>
</amp-accordion><?php
}
You can include it to the end of the amp-sidebar-hamburger-menu/amp-wp-sidebar.php, your themes functions.php file or a custom functions file. Let me know if that works for you.