Inspired by this question - What types of boarding pass barcodes are accepted at Stockholm Arlanda Airport?
Is it allowed by airports and airlines to use anything but the official .pdf they provide or the official mobile app of the airline? For some reason I feel like there would at least be a few raised eyebrows if something not so official was shown at the gate but would still have a barcode/QR code that their scanning device would recognise. There were a number of times I gave my phone to the agent at the gate, and a number of times the agent didn't just scan the barcode but also looked at the information on the phone with their eyes too (a few people below gave even more examples in the comments too).
So this is two-fold, considering both going through security (which is probably the easiest as nobody there takes your phone or looks at it) and going through the gate to board the plane (where it can be taken to scan and/or looked at with eyes). And any other extra checks that sometimes may happen as well.