If you are using Table of Contents Plus Plugin for Non-AMP and you want table content in AMP then you need to purchase Table Of Content For AMP extension and install.
The table of contents is generated automatically on the base of the document headings these auto insertion works only when the_content() has been used
1. First go to WordPress dashboard -> Settings -> TOC+ -> Main options. check this two option. click on save button.

2. Enter on Your Information Post or page. After, Click on “Publish”.

The output Table of content in AMP:

SHORTCODES
The shortcodes allow you to fully control the position of the table of contents within your page. The following shortcodes are available with this plugin. If you use the blow the shortcode it will work in AMP.
[TOC]
you want to generate the table of contents at the preferred position. where want to display a table of contents you need to add this shortcode in your page.
[NO_TOC]
Allows you to disable the table of contents for the current post, page, or custom post type.
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.
Does this work with any of the newer plugins? This plugin (on WordPress) is over 3 years old and no longer supported.
Hi Quratulain,
In AMP we are compatible with Table of content plus will you please tell us which Table of content plugin you are using.
Doesnt work with the page builder
Hi Hector,
Will you please tell us which page builder you are using, please to our support team from here – https://ampforwp.com/support/ and they will help.
I disabled “Allow user to toggle visibility of the table of contents” but on AMP sites this option is still active. How can I deactivate that again?
Hi Marcel,
We have already created ticket like below the screenshot – https://take.ms/8TXvQ it will be pushed in the future update.