How to make a sticky menu

How to attach a menu so that when you scroll it stays on top.

It is possible, but it requires advance customization or third-party plugins like this one Sticky Menu & Sticky Header – WordPress plugin | WordPress.org