This Question was answered several times but I do not understand the accepted answers. For example here How to spawn XMobar instance for each screen?. In the question the user refers to another question where the solution is hidden behind a comment. But the accepted answer in this thread still hides code behind a comment. Can someone post a xmonad.hs that solves the problem and can be compiled?
I also asked this question here https://www.reddit.com/r/xmonad/comments/lowbw1/same_xmobar_on_several_screens/ but got the answer that it is not possible. But as written above there seems to be a solution since there were accepted answers.