Here are two alternative for you based on your actual query. If you’re querying $projects->have_posts() on WP default blog (Post) you can use query like
$projects = new WP_Query( array( 'tag__in' => array( 52, 53 ) ) );
Another is if you’re querying on Custom Post Type you can use following query to get posts or your desire tags.
$array = array (
'post_type' => 'your custom post type',
'posts_per_page' => 10,
// Your other criteria of the query
'tax_query' => array(
array(
'taxonomy' => 'name of your tag taxonomy',
'field' => 'id',
'terms' => array(52,53)
)
);
$projects = new WP_Query( $array );
if ( $projects->have_posts() ){
while ( $projects->have_posts() ) { $projects->the_post(); ?>
<div <?php post_class(); ?>>
<a href="https://wordpress.stackexchange.com/questions/349961/<?php the_permalink(); ?>" class="thumb">
<?php the_post_thumbnail( $image_size ); ?>
<div class="portfolio-hover">
<div class="portfolio-description">
<h4><?php the_title(); ?></h4>
<div><?php the_excerpt(); ?></div>
</div>
</div>
</a>
</div>
<?php
}
}