How can I increase the viscosity of dilute hydrochloric acid
If the solution is not too concentrated and you dont need it to be stable for a prolonged period, many viscosity modifiers can be used. I would start trying something simple, like CMC based wallpaper paste.