With Apple, there may be some plist keys that you can set that say things like gyroscope required, which would limit things to the iPhone 4 or later. I believe iTunes looks at that information and won’t offer your app for sale to devices that don’t have the proper hardware requirements. But screen size is not one of them.
Google Play and the Samsung store allow you to specifically pick devices to not support. The list is long and hard to deal with, but at least on the Samsung side, they do give you screen sizes to work with. I’ve heard that Amazon has a similar way to restrict, but to be honest I’ve never looked or heard.