Go to the following link and install the relevant VM.

It’s free for testing on Mac devices:
https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/