Use the below snippet to get SVG code from an ACF image field, remember to allow SVG uploads first.
<?php $logo = get_field(‘header_logo’, ‘option’); ?> <?php echo file_get_contents( $logo ); ?>