With ICE cars, typically manufacturer warranties only are valid for the original purchaser.
I just got a repair on my 2023 Camry that I bought used. It was covered under the 36,000 mile bumper to bumper warranty.
I have had previous cars repaired under manufacturer warranty and I always buy used.
I just take it to the nearest certified dealer for that brand of car and they take care of it.