You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Mydriasis and explain in detail?
Mydriasis is the dilation of the pupil, usually having a non-physiological cause, or sometimes a physiological pupillary response. Non-physiological causes of mydriasis include disease, trauma, or the use of certain types of drugs.
Normally, as part of the pupillary light reflex, the pupil dilates in the dark and constricts in the light to respectively improve vividity at night and to protect the retina from sunlight damage during the day. A mydriatic pupil will remain excessively large even in a bright environment. The excitation of the radial fibres of the iris which increases the pupillary aperture is referred to as a mydriasis. More generally, mydriasis also refers to the natural dilation of pupils, for instance in low light conditions or under sympathetic stimulation.
Fixed, unilateral mydriasis could be a symptom of raised intracranial pressure. The opposite, constriction of the pupil, is referred to as miosis. Both mydriasis and miosis can be physiological. Anisocoria is the condition of one pupil being more dilated than the other.

Causes
There are two types of muscle that control the size of the iris: the iris sphincter, composed of circularly arranged muscle fibers, and the iris dilator, composed of radially arranged muscle fibers. The sphincter is controlled by nerves of the parasympathetic nervous system, and the dilator by the sympathetic nervous system. Sympathetic stimulation of the adrenergic receptors causes the  contraction of the radial muscle and subsequent dilation of the pupil. Conversely, parasympathetic stimulation causes contraction of the circular muscle and constriction of the pupil.
The mechanism of mydriasis depends on the agent being used. It usually involves either a disruption of the parasympathetic nerve supply to the eye (which normally constricts the pupil) or overactivity of the sympathetic nervous system (SNS).

Pupil diameter also increases in reaction to cognitive tasks requiring memory and attention, and this phenomenon is used as an indicator of mental activation (‘arousal’) in psychophysiological experiments.

Drugs
A mydriatic is an agent that induces dilation of the pupil. Drugs such as tropicamide are used in medicine to permit examination of the retina and other deep structures of the eye, and also to reduce painful ciliary muscle spasm (see cycloplegia). One effect of administration of a mydriatic is intolerance to bright light (photophobia). Purposefully-induced mydriasis via mydriatics is also used as a diagnostic test for Horners syndrome.
Mydriasis can be induced via modulation of adrenergic or cholinergic signalling.
Drugs that can cause mydriasis include:

Stimulants (typically monoaminergics) such as amphetamines, cocaine, MDMA, and mephedrone.
Anticholinergics such as diphenhydramine, atropine, hyoscyamine, and scopolamine antagonize the muscarinic acetylcholine receptors in the eye