I was able to solve the problem as follows:
I created a new mobile menu with another CSS. I added “wp-content/themes/Divi/css” to the CSS optimization exclusion list.
After installing the plugin and enabling CSS optimization, the site was faster in the Mozilla browser, but in Chrome it was slower. And part of the menu does not load properly on the mobile.