To design the output by css class is very useful. So when you want to design wordpress post thumbnil you have to add class to the post thumbnil. So you can add class to post thumbnil as below.
<?php the_post_thumbnail('post-thumbnail', ['class' => 'CLASS_NAME']); ?>OR
the_post_thumbnail( 'thumbnail', array( 'class'=> 'CLASS_NAME') );