I am unable to install Xcode on my MacBook Air

I have a mac that is less than macOS version 11 and am unable to install Xcode. What should I do?