Need help with airPlay from iPad to Apple TV

iOS and iPadOS Gaming

I have an iPad with books to read online.
I try to connect with airPlay and sometimes, sometimes, it works. If it doesn't I get in the control center like iPad: harry potter. Then after that comes either apple tv not playing or music. How am I to do this more reliably?