iPhone XS heating & restart issue after update ios 18

I have an iPhone XS model since I updated it to iOS 18 after that it started having heating and hanging issues it is shutting down and running by itself a lot It is very bad of Apple that it lets old phones hang. Because of this, it is very bad for old customers to get their new phones

iPhone XS heating & restart issue after update ios 18
 
 
Q