How to update the table of contents in Google Docs
From Google support on Google Docs

You cannot insert a Table of contents on Android.

Add, change, or delete a table of contents is only possible on a computer.