You can't just stick in a Snow Leopard DVD and install it. The hardware will reject it because Snow Leopard has no idea how to run a computer built for Mojave, then too the disc itself may reject the hardware it it came for use with a different computer (and then this gets into the whole licensing issue and talk about Snow Leopard Server, as we still have no idea which version of Snow Leopard you have)). You have to run software such as VirtualBox to emulate (pretend) a different kind of machine -- a vm = Virtual machine - Wikipedia
I have no experience with setting this up but it seems other have done it at least with Sierra: virtualbox.org • View topic - [Solved] Snow Leopard guest, Sierra host on new (late 2016) MBP
I'll let you peruse the VB forums to see if you can find newer. Realize this is not likely to be a 5 minute job, particularly if you are running macOS that is relatively new and the people writing things such as VB are still working out their end of the software.