Check if other codes from this app/device work and check if other device would show you a different code. My old laptop now has its time a few minutes off so my TOTPs from KeePassXC don't work anymore.
And, most important thing you didn't mention, did 2FA ever work for this account? Did it suddenly stop working?
I use KeePassXC for TOTP on computer and Aegis on Android, but I didn't check if Aegis can change to sha256 like KeePassXC can.
Edited: I just checked and found the option for sha256 in Aegis, so 2FA must work with code generated by this app.