hair renders weirdly there is a discrepancy between the viewport hair ( how I intend it to be) and the render in Cycles

What's the reason for this difference
It has something to do with "use modifier stack" checkbox in particles setting and hair grooming. Subsurf level should be the same for viewport and for render.