Welcome to HCM.
The mucous like substance coming out of penis is likely to be seminal discharge. You have not mentioned your age. It is better to consult an urologist
and get yourself examined and do the necessary blood and urine tests to exclude STD
or any other infection. Keep your private parts clean and dry and maintain proper hygiene.