In order to cluster based on the obtained user basic information and interest characteristics to improve traditional online teaching systems, a design scheme for a mixed teaching mobile platform for ideological and political courses based on K -means algorithm is proposed. In terms of software design, the K-means algorithm optimized by GA is used to cluster student information, and the hierarchical method is used to set up knowledge point structure modules, and the specific implementation method is provided. It also adopts MVC+JSP as the script framework, and determines the overall workflow through demand analysis. Finally, with the assistance of Eclipse, the experiments and software tests prove the feasibility and effectiveness of the platform, and the clustering results are relatively stable and the running time is significantly reduced. Therefore, it provides a new way to strengthen and improve the teaching of college students’ ideological and political courses in the new era.