Page transition between two template


Assume there are two pages (PA, PB) and both are from different template (Ta, Tb).
Ta > PA and Tb > PB. I know that if the different page use same template the back button works with a smooth slide transition while change the routing. But in case os different template the transition is not working.

PA routing is ""
PB routing is “info.pb”

now if I want to move PA > PB or reverse the transition is not working. How can I solve this issue?