call this on product-page template where you want to handle icon or tab:
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post, $woocommerce, $product;
if ($product-> is_virtual('yes')) {
// your logic to display tab or image etc
}else{
// your logic not to display tab or image etc
}
?>
For more related details see this link and this one
Hope this will give you idea and help!
According to comment to get product type with ID : For details
$product = get_product(619);
echo $product->product_type;