Dark Theme makes QR Code black on black

If I switch to Dark Theme (on Android, Google Pixel 4a) then QR codes in emails (from multiple different providers - generally tickets) show as black on black. I’ve tried the same emails in Outlook in Dark Theme and they work ok, so I think it’s the display not the email that causes the problem.