just make sure you also set
overflow-y: auto;
on the parent container or the sticky behavior wont trigger. i ran into this exact issue last week when trying to replicate a mobile ui. its much cleaner than using
position: fixed;
which usually breaks the layout flow for the rest of the feed lmao.