Added v3.1 mobile view support for nested div elements in mega menus (#2009)