I will make a code in php. The code will be - I have a backend code in my ajax file. HTML is generated with data in that code and that code is being shown in frontend through script. So this thing is done for desktop but it has to be done dynamically for mobile then how to do it the reference code is given below.