You can easily determine if you have a hardware or software issue. A reliable method to confirm a screen or other hardware fault is to take a screenshot when the fault is evident - and then review the captured screenshot image...
When reviewed, if the screen artefacts are not present in the screenshot image, then you have demonstrated that you have a hardware fault. If not visible in the screenshot, then something other than hardware will be the cause.
Note: In this instance, you may need to review the screenshot on a different device.
Take a screenshot on your iPad – Apple Support
If the test indicates that you have a hardware fault, a visit to the Genius Bar at your local Apple Store is recommended - where the technicians will be able to test and assess your iPad. This will likely inform your next steps:
Genius Bar Reservation and Apple Support Options - Apple
iPad Repair – Official Apple Support