iPhone mini overheating problem
I don't know if anyone else was facing this problem, but my iPhone 12 mini was overheating like crazy and there were no alerts that it was too hot or anything. 2 days ago it overheated to the point where the screen stopped working (I placed it in a bag on a table and it was left in the sun for 10 min, started overheating in a closed bag). At first, it was just the bottom of the screen that didn't work but then it spread to the top until the whole screen was not functional. I left it at my desk in my room and was woken up by alarms that are set for every day on that same phone. By the morning, not only was the screen unfunctional, but the whole screen turned black and you couldn't do anything but still charge normally and you get messages like it's working. I don't know what to do with it and locals told me that it's not worth saving, but if someone knows what might happened to it and how to make any use of it I would be thankful.
iPhone 12 mini