Your phone may display an exclamation mark in a triangle on a black screen. This screen is called recovery mode, and is usually accessed from the bootloader menu on an Android device. The most common cause of issues with recovery mode is when the device has been rooted; or having installed a custom ROM.
Follow these steps to leave recovery mode and boot your phone normally:
A factory data reset can also resolve some software issues. See How to factory reset a device.