We are taking an important initative to make 3rd party plugins & themes to be perfectly compatible with AMP.
Need to add compatibility with LuckyWP Table of content with AMP
Previously reported: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/3817