Hello,
If you use Elementor then just enable Elementor for the static blocks https://xstore.helpscoutdocs.com/article/47-static-blocks
And use Elementor to create content of the mega menu and use Elementor Menu list item etc.
That topic is already answered.
Regards