@media screen
and (device-aspect-ratio: 2/3), /* less than iphone 5 */
screen and (device-aspect-ratio: 40/71), /* iphone 5 */
screen and (device-aspect-ratio: 375/667), /* iphone 6 */
screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) /* iphone 6+, 7, 7+ aspect ratio too similar to popular android devices */
{
/* styles here */
}