Get different images for mobile and desktop with php, advanced custom fields without using js and ajax

You can display the selected image when using the Image ID return type

<?php $image = get_field('image'); $size="full"; // (thumbnail, medium, large, full or custom size) if( $image ) { echo wp_get_attachment_image( $image, $size ); }

This function also generates the srcset attribute allowing for responsive images!