If you have it on both devices then i fear its not game related but device related.
Since its a Samsung, try installing Samsung Game Tuner app. This app tries to increase game performance based on the device.
Printable View
Where can I download the samsung game tuner app? And how does it work?
You can find it in play store.
And its easy to use. You just tell the app what games it needs to enhance and what modes to us.
But the tuner app doesnt compatible for my device. Ohh god.... 😕
Game tuner needs at least Android 5.0.
What version off android does your grand prime have?
Lollipop version running on my device. But its saying that not compatible for my device