Display recently viewed products for NOT LOGGED CUSTOMERS in Magento 2

Go to Admin => Stores > Configuration > Catalog > Catalog > Recently Viewed/Compared Products select Yes to ( Synchronize widget products with backend storage )
 

Display recently viewed products for NOT LOGGED CUSTOMERS in Magento 2