If you still have this issue, then try the following -
Holding the power button pressed, does if turn off the phone?
If you cannot power it off, let the battery drain to zero. Charge your phone. Connect the phone to a laptop or to a USB C wired headphones and then press and hold volume up + power key simultaneously to boot into the system recovery mode. Once the recovery menu appears, select Wipe system cache, followed by Repair apps. Check if the phone boots normally after performing these actions.
If it continues to remain stuck on the boot screen, then it's best to contact Samsung Support and book for a repair.