Whether or not you choose to sell your shares won't have an effect on a mortgage application. You should make a lender aware you have them for profiling reasons - it shows you have the ability to live within your means as well as doing sensible things like holding shares.
Main criteria used for assessing a mortgage application will be your salary, credit history and any existing loan repayments.