Could you explain the situations in which this is advantageous over CSS sticky? Saying it's "very good from UX point of view" is hard to accept at face value - people want to understand the problem it's solving.
I don't understand why you'd chose an incredibly more complex solution that is objectively worse in nearly every way.
On Android Firefox Preview as well as Kiwi Browser (chromium) I simply see a list without anything sticky.
Same for desktop mode in both Android browsers.
1. Stack two headers on top of each other, both of them sticky. (Only topmost header is visible.)
2. At a certain scroll position, fade/scroll/hide the top header.