How to use the conditional homepage tag

The blog posts index and site front page have been treated as two different query contexts, with is_home() applying to the blog posts index, and is_front_page() applying to the site front page.

Be careful not to confuse the two query conditionals:

On the site front page, is_front_page() will always return TRUE, regardless of whether the site front page displays the blog posts index or a static page.

On the blog posts index, is_home() will always return TRUE, regardless of whether the blog posts index is displayed on the site front page or a separate page.

If you are targeting Your site’s home page, its recommended that you use :

 if( is_front_page() ){
   #all your stuffs here specific to home page
 }

have a look over WordPress to learn more.