My iPhone won't turn on and keeps showing Apple logo
My iPhone, I think it's a 7 or 8, not sure, will not turn on. I put it on the charger and it turned on and showed it was at 100 so I was like oh that's weird because it was dead in the car. So I put in my passcode and then it restarted and then it kept restarting over and over but it wouldn't actually turn on, just kept showing the white apple logo on the black screen. So I took it off the charger for an hour, and I put it back on and it still keeps showing the apple logo and stopping over and over and its been going on for so long . I tried to force restart it did nothing, I tried it again and it showed the thing it shows when you connect it to a computer, but I cannot do that because my computer is broken and I'm on vacation. I now have it off the charger and its still doing it.
[Re-Titled by Moderator]
Earlier iPhone models