If you find that your screen mirroring is being faulty, check to see if your iPad battery is running low. If your device is fully charged, then you may have a bug in your OS. If the issue keeps occurring, try doing a factory reset. This should help remove any potential bugs that may be on your device.