This is possible for several reasons.
The first is the use of peripheral accessories such as chargers and charging cables and other accessories do not comply with Apple's official certified charging agreement, so the iPhone will appear when using these accessories do not support the accessories pop-up window.
The second is the problem of the system, there are some small bugs in the system that lead to the emergence of pop-ups.
If the iPhone has been stuck and then shows that it does not support this accessory, it may be because the accessory does not match the iPhone