As a self-taught developer (although I don’t think self-taught has anything to do with it) I strongly relate to you!
I’m currently a full-stack and working hard to transition away from webdev.
The first (and probably hardest) thing for me was to decide what to transition towards, and that’s a question that only you can answer.
If you are self-taught I’m gonna take a guess that you once had this huge curiosity and strong motivation to learn coding! You probably skipped sleep from time to time because it was such a rush learning all those cool things! One clue to decide what to transition towards could be finding again that same motivation that made you learn by yourself in the first place.
As an example, I’m currently learning x86 architecture, assembly, C, kernel development, etc... because (after a few years exploring) I finally decided that I want to transition towards low level hardware programming.
Another idea about transitioning could be taking a break from development. Maybe there are other technical skills that you have or can learn (i.e. video editing, 3D design, penetration testing, etc...) that might spark that original flame or leaning and enjoying what you do.
One last thing is, take a look at the flow state. I remember reading the book “Deep Work” in a time that I was in a job that I hated and about to throw the towel and the ideas in the book completely changed my experience at work. It was still the same job but my attitude was drastically different and I started enjoying immensely what I was doing! (Still quit and got a better job... bad organizational culture is quite hard to fix)
Anyways, wish you the best in your search!!