Yes, thank you for your help. I have solved it. When you do Term Object instead of Term ID, it will work. And the code is for example here.
<?php
$terms = get_field('cat_related_tags', $queried_object);
if( $terms ):
foreach( $terms as $term ):
$cat_image = get_field('cat_image', $term ); ?>
endforeach;
endif;
?>
I have one more question. I am on tag.php and I am trying to get Custom Field Image. This code didn’t work here. Did I do something wrong? Thank you.
<?php $cat_image = get_field('cat_image'); ?>
<?php the_field('cat_image'); ?>