(Replace 14.0 with your desired version number. This works for macOS 11 and later.)
Since Apple does not officially distribute macOS in ISO format—preferring their own .app or .dmg installers through the App Store—finding an ISO is an exercise in resourcefulness.