Https Redirect infinite loop in Mobile browsers

In my cloudfare settings, i found that SSL encryption over cloudfare was “off”. I turned it to “Full Strict”.. Then the problem was fixed. But i am still not sure why i was getting redirect loop in mobile browsers only.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)