You may be entitled to legal help depending on your means. I think you will find something about this on the CAB website called adviceguide.
It's important to realise that legal aid is a loan and not a gift and may have to repaid out of your ' winnings ' if that's not too provocative a term.
It is always worth while considering what you can do to keep costs down. There is a section on this subject somewhere on this website.
It's also worth considering what you might reasonably expect to get out of the divorce process. If this is substantial, you may be able to agree with your solicitors to pay them when it's all over and done with.