Debian 12 hdmi not working

It’s hard to say much given the very limited info you provided, but generally drivers in the Debian repos are quite outdated. Try the newest from the NV DC repo and also check the related section of the Debian wiki and the warning about switching packaging methods.

If refreshing the driver does not help, then attach a bug report file and inline relevant log excerpts.