Same thing happened to me after installing latest security updates for Mojave and after I‘ve started using RX580.
IDK what exactly led to this result, but it is how it is.
My kind of solution is set Duet to “mirror” mode while HDMI display is connected, then reboot and disconnect the diplay while booting and then I can use my iPad like single display, but the resolution is 1280x1024 which is kinda crappy for 2018 iPad Pro.