You should consult a specialist
Exposed glans can attract infections
Since how long this happened?
Next Steps
you can try compressing the glans and moving the foreskin back to its normal position, perhaps with the aid of a lubricant, cold compression.