If you are not Positioning the header as Pinned, make sure it is at the top in the layers of elements. Very easy to bring another element to the Top and cover your header all together. Carts icons are usually inside the header.
Where is the cart icon nested? In the header? or on the page? Make sure it is nested in the header and ensure that it is on top of all the elements in the header just to be sure.