Hi Jimmy,
If the police suspect you to have committed a drug related offence, then they have wide ranging powers to search property on your body or in your possession/property, this could include going through your mobile phone and other electronic devices as this counts as "property".
It depends on which state you are in and the circumstances of the search, but there are situations under which police may search your electronic devices for information.