Is there a way to disable the Internet Explore mode warning in Edge?

Solution 1:

As long as you stay in Windows 10 (not 11) you will still have IE available, although you might need to use How to Prevent Auto redirection from IE to Edge for unsupported sites.

For compatibility's sake, even if you need to pass to Windows 11, you may first create a virtual machine with Windows 10, to do the testing on it.

Keeping virtual machines of older Windows versions is done by many maintainers of deprecated software.