Apple logo flashing on black screen

My old iPad Air Wi-Fi has apple logo flashing on black screen. I lent it to a friend and I believe the charging port is loose, causing the prob. I’ve looked around here and I can’t seem to find a ...