The present invention pertains to a device (1) for the treatment of respiratory disorders or complications thereof in a mammal with a gaseous mixture for use as an inhalable medicament, comprising a patient interface (3), a source (23) of air, a source (21) of gaseous nitric oxide, a source (22) of gaseous oxygen, an application device (4) for providing a gaseous mixture to a patient interface, at least one gas injector (5) for injecting nitric oxide provided by the source of gaseous nitric oxide into the gaseous mixture provided by the application device, at least one gas injector (6) for injecting oxygen provided by the source of gaseous oxygen into the gaseous mixture provided by the application device, and a controller (8) programmed for controlling the at least one gas injector and the application device, wherein the source of gaseous nitric oxide comprises an arrangement (210) for onsite production of nitric oxide, and the source of gaseous oxygen comprises an arrangement (220) for onsite enrichment of oxygen.