Been in that situation before. You need to follow 2 important things -
- You will need to make a switch early in your career. Be it org/team.
- Learn about one Lang+framework for prod level code. Be it Java/spring or python/django etc. Have some knowledge of frontend to some extent (take course of react/angular etc.) But important is the lang+framework for backend. If you are unable to switch team within org. Then try to contribute to open source projects, etc. But do something. Learning framework vs. actually working in it is a big big difference.
Although most companies will ask you through projects, even if they don't and you do not have experience in same, you will land on water once you join them. And that's why it's important equally that you make switch early.
Hope this answers your question.