Mobile devices are upending 15 years of “search-engine optimization” techniques crafted to attract Google’s attention