I bought my current phone in 2021 and it's still going absolutely fine — with the significant problem that its operating system no longer receives security updates.
It's a major problem that the hardware lasts much, much longer than vendors are willing to support it for, and that no-one else can extend support due to hardware “security features”. It creates vast amounts of completely unnecessary electronics waste.
I wish this problem was something that governments were taking seriously.