There is the target API level policy: https://support.google.com/googleplay/android-developer/answ...
So if your app was for Android, it would not be installable on new devices.
For iOS I am not sure, I think they are better about leaving old apps alone.