Chosen Solution

ipad is slow when typing and touch screen

The iPad Mini 2 is an old model and isn’t as fast as new iPads. You can try turning off Background App Refresh in Settings to improve performance slightly. If you’re using a third party keyboard app, try using the original keyboard. If browsing in Safari is slow, try using an ad blocker like Blockbear. Considering the iPad Mini 2 is almost 8 years old, I still think it’s relatively fast.