Question: Can [a person] enter the washroom with a cellphone which has the entire Quran recorded on it, either written or audio?
Answer: “That which is in the cellphone, it is necessary for him to enter [the washroom] with it. There is no blame on him. Except if you find a brother who can guard it for you outside the place of relieving oneself, then do so. [This is ] for everything that has the remembrance of Allah whether through this means or other than it”
Faisal Ibn Abdul Qaadir Ibn Hassan