Ionic same codebase for ipad and iphone

I have a fully fledged app built with ionic and angularjs which is running fine on ipad and android.Now we have decided to release it for iphone and android phones with some design changes.Is there any way to do so with the same codebase as the functionality remains same and only the html changes.I read the documentation for ionic platform but it seems it is only for differentiating android and ios platform.Any help is appreciated,thanks