Start with a force restart. If the logo loop continues, connect to a computer.
An “Update” attempt in Recovery mode may fix the OS without wiping data in some cases; “Restore” erases. Follow our mode guide.
Restore from backup if you have one. See blog: iPhone stuck on Apple logo for more context.