Most likely you are wanting to apply sticky to the nav links of a header but not the logo itself.
<header>
<img src="/logo.svg" alt="Logo"/>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/">About</a></li>
<li><a href="/">Contact</a></li>
</ul>
</header>
Here is potential css you can use.
header {
position: sticky;
top: -100px;
}
This way, the bottom part of your header is the part that appears sticky!
The top value would have to be calculated by JS if your image does not have a fixed size. Then, you can find the ul and set the top attribute to the img's negative height.
Of course, on desktop view, you would most likely want the whole header element sticky, with the img, so on your desktop layout width's just set top to 0 with css breakpoints.