This is how you upgrade from Debian 11 to Debian 12: www.debian.org/releases/…/ch-upgrading.en.html
While this is a great and thorough guide for sys admins, people who just want their 'puter will be unable to follow. Ubuntu has a tool for this called “do-release-upgrade” iirc.