Android and ios dev

What is the best way to ensure my mobile game will run on the most devices?

I have multiple test devices that range widely in processor and GPU type. Its weird that the game will run poorly (but still run) on a low end $99 dollar amazon tablet, but wont run at all on my galaxy a21 or S9.

Any thoughts, tutorials, or recommendations are appreciated.