Generally you should be able to double click the file you downloaded and it will open up and let you access the installer. Is it possible you changed your system’s configuration in some way?
As far as I know, all macOS computers can open dmg files by default: https://www.howtogeek.com/362166/what-is-a-dmg-file-and-how-do-i-use-one